File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,14 +16,22 @@ permissions:
1616jobs :
1717 build :
1818 name : build
19- runs-on : ubuntu-latest
19+ runs-on : ${{ matrix.os }}
20+ strategy :
21+ matrix :
22+ os : [ubuntu-latest, macos-latest]
2023 steps :
2124 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2225 with :
2326 fetch-depth : 1
2427 - uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2528 with :
2629 go-version-file : go.mod
30+ - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
31+ with :
32+ python-version : ' 3.x'
33+ - name : Install Python dependencies
34+ run : pip install pyyaml
2735 - name : run make build
2836 run : make build
2937 - name : make build installer
Original file line number Diff line number Diff line change 3939
4040 golangci :
4141 name : golangci-lint
42- runs-on : ubuntu-latest
42+ runs-on : ${{ matrix.os }}
43+ strategy :
44+ matrix :
45+ os : [ubuntu-latest, macos-latest]
4346 steps :
4447 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4548 with :
9396
9497 modcheck :
9598 name : modcheck
96- runs-on : ubuntu-latest
99+ runs-on : ${{ matrix.os }}
100+ strategy :
101+ matrix :
102+ os : [ubuntu-latest, macos-latest]
97103 steps :
98104 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
99105 with :
@@ -106,9 +112,15 @@ jobs:
106112
107113 vendorcheck :
108114 name : vendorcheck
109- runs-on : ubuntu-latest
115+ runs-on : ${{ matrix.os }}
116+ strategy :
117+ matrix :
118+ os : [ubuntu-latest, macos-latest]
110119 steps :
111120 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
121+ - uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
122+ with :
123+ go-version-file : go.mod
112124 - name : Check the vendor folder consistency
113125 run : |
114126 go mod vendor -o vendor.gen
Original file line number Diff line number Diff line change @@ -18,15 +18,18 @@ permissions:
1818jobs :
1919 unittests :
2020 name : unittests
21- runs-on : ubuntu-latest
21+ runs-on : ${{ matrix.os }}
22+ strategy :
23+ matrix :
24+ os : [ubuntu-latest, macos-latest]
2225 steps :
23- - name : checkout
26+ - name : checkout
2427 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2528 with :
2629 fetch-depth : 1
27- - name : setup go
30+ - name : setup go
2831 uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
29- with :
32+ with :
3033 go-version-file : go.mod
3134 check-latest : true
3235 - name : run unit tests
You can’t perform that action at this time.
0 commit comments