Skip to content

Commit

Permalink
chore: prepare CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Feb 6, 2022
1 parent ba109e2 commit 6a48505
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
stable: 'false'
go-version: 1.18.0-beta2

- name: Update GitHub action config
run: make assets/github-action-config.json
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
stable: 'false'
go-version: 1.18.0-beta2
- name: Run go list
run: go list -json -m all > go.list
- name: Nancy
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: CI
on:
push:
Expand All @@ -7,6 +6,7 @@ on:
branches:
- master
pull_request:

jobs:
# Check if there any dirty change for go mod tidy
go-mod:
Expand All @@ -15,7 +15,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
stable: 'false'
go-version: 1.18.0-beta2
- name: Checkout code
uses: actions/checkout@v2
- name: Check go mod
Expand Down Expand Up @@ -45,7 +46,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17 # test only the latest go version to speed up CI
stable: 'false'
go-version: 1.18.0-beta2 # test only the latest go version to speed up CI
- name: Run tests
run: make.exe test
continue-on-error: true
Expand All @@ -57,7 +59,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17 # test only the latest go version to speed up CI
stable: 'false'
go-version: 1.18.0-beta2 # test only the latest go version to speed up CI
- name: Run tests
run: make test
tests-on-unix:
Expand All @@ -66,13 +69,14 @@ jobs:
strategy:
matrix:
golang:
- 1.16
- 1.17
- 1.18.0-beta2
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
stable: 'false'
go-version: ${{ matrix.golang }}
- uses: actions/cache@v2.1.7
with:
Expand All @@ -95,6 +99,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
stable: 'false'
go-version: 1.18.0-beta2
- name: Check generated files are up to date
run: make fast_check_generated
6 changes: 4 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
stable: 'false'
go-version: 1.18.0-beta2
- name: Unshallow
run: git fetch --prune --unshallow

Expand All @@ -40,7 +41,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
stable: 'false'
go-version: 1.18.0-beta2

- name: Unshallow
run: git fetch --prune --unshallow
Expand Down

0 comments on commit 6a48505

Please sign in to comment.