]> Sergey Matveev's repositories - go-opus.git/commitdiff
chore: GH action for testing without libopusfile
authorHraban Luyat <hraban@0brg.net>
Fri, 10 Jul 2020 12:47:04 +0000 (13:47 +0100)
committerHraban Luyat <hraban@0brg.net>
Fri, 10 Jul 2020 12:54:23 +0000 (13:54 +0100)
.github/workflows/test.yml

index c1efa507aeb3cbd66267eb6f494630788237689a..49d5990b49f0c5ac0ab773a16ff010a7718e3c6b 100644 (file)
@@ -1,7 +1,7 @@
 on: [push, pull_request]
 name: Test
 jobs:
-  test:
+  full:
     strategy:
       matrix:
         go-version:
@@ -24,4 +24,18 @@ jobs:
     - name: Lint
       run: gofmt -d . | tee /dev/stderr | ifne false
     - name: Test
-      run: go test -race -v ./...
\ No newline at end of file
+      run: go test -race -v ./...
+
+  no-libopusfile:
+    runs-on: ubuntu-20.04
+    steps:
+    - name: Install Go
+      uses: actions/setup-go@v2
+      with:
+        go-version: 1.14.x
+    - name: Install system dependencies
+      run: sudo apt-get install pkg-config libopus-dev
+    - name: Checkout code
+      uses: actions/checkout@v2
+    - name: Test
+      run: go test -tags nolibopusfile -race -v ./...
\ No newline at end of file