File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
on : [push, pull_request]
2
2
name : Continuous integration
3
+
4
+ permissions :
5
+ contents : read
6
+
3
7
jobs :
4
8
validate :
5
9
name : validate
6
10
runs-on : ubuntu-latest
7
11
timeout-minutes : 5
8
12
steps :
9
13
- name : Checkout
10
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v3
11
15
- name : Lint code
12
16
uses : golangci/golangci-lint-action@v2
13
17
- name : Check license
@@ -16,16 +20,18 @@ jobs:
16
20
test :
17
21
strategy :
18
22
matrix :
19
- go-version : [1.18.x ]
23
+ go-version : ['1.17', '1.18', '>=1.19.0-rc.2' ]
20
24
platform : [ubuntu-latest, macos-latest, windows-latest]
21
25
runs-on : ${{ matrix.platform }}
22
26
timeout-minutes : 5
23
27
steps :
28
+ - name : Checkout code
29
+ uses : actions/checkout@v3
24
30
- name : Install Go
25
- uses : actions/setup-go@v2
31
+ uses : actions/setup-go@v3
26
32
with :
27
33
go-version : ${{ matrix.go-version }}
28
- - name : Checkout code
29
- uses : actions/checkout@v2
34
+ check-latest : true
35
+ cache : true
30
36
- name : Test
31
37
run : go test ./...
Original file line number Diff line number Diff line change 1
1
module github.com/compose-spec/compose-go
2
2
3
- go 1.18
3
+ go 1.17
4
4
5
5
require (
6
6
github.com/distribution/distribution/v3 v3.0.0-20220725133111-4bf3547399eb
You can’t perform that action at this time.
0 commit comments