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: ensure compatibility for all supported Go versions #295

Merged
merged 1 commit into from Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
@@ -1,13 +1,17 @@
on: [push, pull_request]
name: Continuous integration

permissions:
contents: read

jobs:
validate:
name: validate
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Lint code
uses: golangci/golangci-lint-action@v2
- name: Check license
Expand All @@ -16,16 +20,18 @@ jobs:
test:
strategy:
matrix:
go-version: [1.18.x]
go-version: ['1.17', '1.18', '>=1.19.0-rc.2']
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
check-latest: true
cache: true
- name: Test
run: go test ./...
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/compose-spec/compose-go

go 1.18
go 1.17

require (
github.com/distribution/distribution/v3 v3.0.0-20220725133111-4bf3547399eb
Expand Down