| 1 | on: [push, pull_request] |
| 2 | name: Test |
| 3 | jobs: |
| 4 | test: |
| 5 | strategy: |
| 6 | matrix: |
| 7 | go-version: [1.22.x] |
| 8 | os: [ubuntu-latest] |
| 9 | runs-on: ${{ matrix.os }} |
| 10 | |
| 11 | steps: |
| 12 | - uses: FedericoCarboni/[email protected] |
| 13 | id: setup-ffmpeg |
| 14 | with: |
| 15 | # A specific version to download, may also be "release" or a specific version |
| 16 | # like "6.1.0". At the moment semver specifiers (i.e. >=6.1.0) are supported |
| 17 | # only on Windows, on other platforms they are allowed but version is matched |
| 18 | # exactly regardless. |
| 19 | ffmpeg-version: release |
| 20 | |
| 21 | - name: Install Go |
| 22 | uses: actions/setup-go@v4 |
| 23 | with: |
| 24 | go-version: ${{ matrix.go-version }} |
| 25 | |
| 26 | - name: Checkout code |
| 27 | uses: actions/checkout@v4 |
| 28 | |
| 29 | - name: Test |
| 30 | run: go test -v -timeout 1m ./... |