forked from quic-go/quic-go
ci: combine the go generate workflow with the linting workflow (#4053)
* ci: combine the go generate workflow with the linting workflow * reorder
This commit is contained in:
13
.github/workflows/go-generate.yml
vendored
13
.github/workflows/go-generate.yml
vendored
@@ -1,13 +0,0 @@
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
gogenerate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.20.x"
|
||||
- name: Install dependencies
|
||||
run: go build
|
||||
- name: Run code generators
|
||||
run: .github/workflows/go-generate.sh
|
||||
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
@@ -19,13 +19,18 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
- name: Check that go.mod is tidied
|
||||
if: success() || failure() # run this step even if the previous one failed
|
||||
run: |
|
||||
cp go.mod go.mod.orig
|
||||
cp go.sum go.sum.orig
|
||||
go mod tidy
|
||||
diff go.mod go.mod.orig
|
||||
diff go.sum go.sum.orig
|
||||
- name: Run code generators
|
||||
if: success() || failure() # run this step even if the previous one failed
|
||||
run: .github/workflows/go-generate.sh
|
||||
- name: Check that go mod vendor works
|
||||
if: success() || failure() # run this step even if the previous one failed
|
||||
run: |
|
||||
cd integrationtests/gomodvendor
|
||||
go mod vendor
|
||||
|
||||
Reference in New Issue
Block a user