mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-18 04:40:03 +02:00
.github/workflows/test.yml: run tests on all supported os/arch pairs
This commit is contained in:
parent
18918faad0
commit
d1a6d038a3
1 changed files with 5 additions and 3 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
|
@ -11,8 +11,10 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
go-version: ["1.20", "1.21"]
|
||||
os: [ linux, freebsd ]
|
||||
arch: [ 386, amd64, arm, arm64 ]
|
||||
runs-on: ubuntu-latest
|
||||
name: Test (go v${{ matrix.go-version }})
|
||||
name: Test (${{matrix.os}} ${{matrix.arch}} go v${{ matrix.go-version }})
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
|
@ -22,10 +24,10 @@ jobs:
|
|||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
run: GOOS=${{matrix.os}} GOARCH=${{matrix.arch}} go test -v ./...
|
||||
|
||||
- name: Test API
|
||||
run: cd api; go test -v ./...
|
||||
run: cd api; GOOS=${{matrix.os}} GOARCH=${{matrix.arch}} go test -v ./...
|
||||
|
||||
test-alpine:
|
||||
strategy:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue