Skip to content

Commit e65de72

Browse files
committed
github/workflows/main: move integration tests to a dedicated job
1 parent 1d013d6 commit e65de72

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
test:
4040
strategy:
4141
matrix:
42-
go_version:
42+
go-version:
4343
- 1.19
4444
- "1.20"
4545
os:
@@ -53,30 +53,44 @@ jobs:
5353
- os: macos
5454
goarch: 386
5555

56-
name: test (${{ matrix.os }}/go-${{ matrix.go_version }}/${{ matrix.goarch }})
56+
name: tests (${{ matrix.os }}/go-${{ matrix.go-version }}/${{ matrix.goarch }})
5757
runs-on: ${{ matrix.os }}-latest
5858
steps:
5959
- uses: actions/setup-go@v3.5.0
6060
id: go
6161
with:
62-
go-version: ${{ matrix.go_version }}
62+
go-version: ${{ matrix.go-version }}
6363

6464
- uses: actions/checkout@v3.3.0
6565

6666
- run: go mod download
6767

6868
- run: make staticcheck
69-
if: matrix.go_version == '1.20'
69+
if: matrix.go-version == '1.20'
7070

7171
- run: make gotest
7272
env:
7373
GOARCH: ${{ matrix.goarch }}
7474
GOPROXY: off
7575

76+
integration-tests:
77+
strategy:
78+
matrix:
79+
os:
80+
- ubuntu
81+
- windows
82+
83+
name: integration tests (${{ matrix.os }})
84+
runs-on: ${{ matrix.os }}-latest
85+
steps:
86+
- uses: actions/setup-go@v3.5.0
87+
id: go
88+
with:
89+
go-version: "1.20"
90+
91+
- uses: actions/checkout@v3.3.0
92+
7693
- run: make integration
77-
if: matrix.os != 'macos' && matrix.goarch == 'amd64'
78-
env:
79-
GOFLAGS: -mod=readonly
8094

8195
lint:
8296
name: lint

0 commit comments

Comments
 (0)