]> Sergey Matveev's repositories - go-opus.git/commitdiff
chore: use GitHub actions for CI (#30)
authorHraban Luyat <hraban@0brg.net>
Fri, 10 Jul 2020 12:25:57 +0000 (13:25 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2020 12:25:57 +0000 (13:25 +0100)
* remove Travis CI integration
* use github actions instead

.github/workflows/test.yml [new file with mode: 0644]
.travis.yml [deleted file]

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644 (file)
index 0000000..c1efa50
--- /dev/null
@@ -0,0 +1,27 @@
+on: [push, pull_request]
+name: Test
+jobs:
+  test:
+    strategy:
+      matrix:
+        go-version:
+          - 1.14.x
+        platform:
+          # Would like to test mac & win but not sure how to install opus on
+          # those in GH actions, yet.
+          - ubuntu-latest
+    runs-on: ${{ matrix.platform }}
+    steps:
+    - name: Install Go
+      uses: actions/setup-go@v2
+      with:
+        go-version: ${{ matrix.go-version }}
+    - name: Install system dependencies
+      run: sudo apt-get install pkg-config libopus-dev libopusfile-dev moreutils
+    - name: Checkout code
+      uses: actions/checkout@v2
+    # Could be a separate step but this is so quick--just put it here
+    - name: Lint
+      run: gofmt -d . | tee /dev/stderr | ifne false
+    - name: Test
+      run: go test -race -v ./...
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index cab70a7..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-language: go
-
-go: 1.7
-
-dist: trusty
-sudo: required
-
-before_install:
-  - sudo apt-get update
-  - sudo apt-get install pkg-config libopus-dev libopusfile-dev moreutils
-
-script:
-  - gofmt -l . | tee /dev/stderr | ifne false
-  - go test -v ./...