-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Centralise the CI in main.yml making it easier for contributors to understand the requirements avoid them to view non-standard script files.
- Loading branch information
Showing
4 changed files
with
16 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: All builds | |
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
validate: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -15,10 +15,21 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
go-version: ${{ matrix.go_version }} | ||
- run: ./.ci.gogenerate.sh | ||
- run: ./.ci.gofmt.sh | ||
- run: ./.ci.govet.sh | ||
- run: go test -v -race ./... | ||
- name: Check go mod tidy | ||
run: | | ||
go mod tidy | ||
(cd _codegen && go mod tidy) | ||
git --no-pager diff && [[ -z $(git status -s) ]] | ||
- name: Check go generate | ||
run: | | ||
go generate ./... | ||
git --no-pager diff && [[ -z $(git status -s) ]] | ||
- name: Check gofmt | ||
run: | | ||
gofmt -w . | ||
git --no-pager diff && [[ -z $(git status -s) ]] | ||
- name: Check go vet | ||
run: go vet ./... | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|