Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: test both go 1.20 and 1.21 #2044

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ jobs:
golangci:
name: lint
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.20.x', '1.21.x']
steps:
- uses: actions/setup-go@v4
with:
cache: false
go-version: '1.20'
go-version: ${{ matrix.go }}
- uses: actions/checkout@v4
- name: Run linter with GH action
uses: golangci/golangci-lint-action@v3
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ jobs:
test-run-minimal:
name: Running zot without extensions tests
runs-on: ubuntu-latest-16-cores
strategy:
matrix:
go: ['1.20.x', '1.21.x']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/clean-runner
- name: Install go
uses: actions/setup-go@v4
with:
cache: false
go-version: 1.20.x
go-version: ${{ matrix.go }}
- name: Cache go dependencies
id: cache-go-dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -58,13 +61,16 @@ jobs:
test-run-extensions:
name: Run zot with extensions tests
runs-on: ubuntu-latest-16-cores
strategy:
matrix:
go: ['1.20.x', '1.21.x']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/clean-runner
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.20.x
go-version: ${{ matrix.go }}
- name: Cache go dependencies
id: cache-go-dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -99,13 +105,16 @@ jobs:
test-run-devmode:
name: Running privileged tests on Linux
runs-on: ubuntu-latest-16-cores
strategy:
matrix:
go: ['1.20.x', '1.21.x']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/clean-runner
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.20.x
go-version: ${{ matrix.go }}
- name: Cache go dependencies
id: cache-go-dependencies
uses: actions/cache@v3
Expand Down
Loading