fix ci workflow order

This commit is contained in:
Levi Schoen 2022-11-30 14:32:06 -08:00
parent 644bd0acec
commit 99fe50219d
3 changed files with 21 additions and 14 deletions

View File

@ -3,14 +3,5 @@ on:
push:
# run per commit ci checks against this commit
jobs:
proto-lint:
uses: ./.github/workflows/proto.yml
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
lint:
uses: ./.github/workflows/ci-lint.yml

16
.github/workflows/ci-lint.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Lint Checks
on:
workflow_call:
# run per commit ci checks against this commit
jobs:
proto-lint:
uses: ./.github/workflows/proto.yml
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review

View File

@ -6,8 +6,8 @@ on:
- master
jobs:
# run per commit ci checks against master branch
commit-checks:
uses: ./.github/workflows/ci-commit.yml
lint-checks:
uses: ./.github/workflows/ci-lint.yml
# run default ci checks against master branch
default-checks:
uses: ./.github/workflows/ci-default.yml
@ -15,7 +15,7 @@ jobs:
# configurations for databases, cpu architectures and operating systems
publish-internal:
# only run if all checks pass
needs: [commit-checks, default-checks]
needs: [lint-checks, default-checks]
runs-on: ubuntu-latest
steps:
- name: set build tag