Skip to content

Commit

Permalink
ci: centralise ci in workflow file
Browse files Browse the repository at this point in the history
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
stevenh committed Aug 20, 2023
1 parent 882382d commit ba2ff69
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 40 deletions.
14 changes: 0 additions & 14 deletions .ci.gofmt.sh

This file was deleted.

16 changes: 0 additions & 16 deletions .ci.gogenerate.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .ci.govet.sh

This file was deleted.

21 changes: 16 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: All builds
on: [push, pull_request]

jobs:
build:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -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:
Expand Down

0 comments on commit ba2ff69

Please sign in to comment.