-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from vansante/ci
Upgrade CI pipelines a bit
- Loading branch information
Showing
2 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,27 @@ jobs: | |
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.18.x, 1.19.x] | ||
go-version: [1.22.x] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Install Linux packages | ||
if: matrix.os == 'ubuntu-latest' | ||
run: sudo apt update && sudo apt install -y --no-install-recommends ffmpeg | ||
- uses: FedericoCarboni/[email protected] | ||
id: setup-ffmpeg | ||
with: | ||
# A specific version to download, may also be "release" or a specific version | ||
# like "6.1.0". At the moment semver specifiers (i.e. >=6.1.0) are supported | ||
# only on Windows, on other platforms they are allowed but version is matched | ||
# exactly regardless. | ||
ffmpeg-version: release | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Test | ||
run: go test -v ./... | ||
run: go test -v -timeout 1m ./... |