mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
fix ci workflow order
This commit is contained in:
parent
644bd0acec
commit
99fe50219d
13
.github/workflows/ci-commit.yml
vendored
13
.github/workflows/ci-commit.yml
vendored
@ -3,14 +3,5 @@ on:
|
|||||||
push:
|
push:
|
||||||
# run per commit ci checks against this commit
|
# run per commit ci checks against this commit
|
||||||
jobs:
|
jobs:
|
||||||
proto-lint:
|
lint:
|
||||||
uses: ./.github/workflows/proto.yml
|
uses: ./.github/workflows/ci-lint.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
|
|
||||||
|
16
.github/workflows/ci-lint.yml
vendored
Normal file
16
.github/workflows/ci-lint.yml
vendored
Normal 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
|
6
.github/workflows/ci-master.yml
vendored
6
.github/workflows/ci-master.yml
vendored
@ -6,8 +6,8 @@ on:
|
|||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
# run per commit ci checks against master branch
|
# run per commit ci checks against master branch
|
||||||
commit-checks:
|
lint-checks:
|
||||||
uses: ./.github/workflows/ci-commit.yml
|
uses: ./.github/workflows/ci-lint.yml
|
||||||
# run default ci checks against master branch
|
# run default ci checks against master branch
|
||||||
default-checks:
|
default-checks:
|
||||||
uses: ./.github/workflows/ci-default.yml
|
uses: ./.github/workflows/ci-default.yml
|
||||||
@ -15,7 +15,7 @@ jobs:
|
|||||||
# configurations for databases, cpu architectures and operating systems
|
# configurations for databases, cpu architectures and operating systems
|
||||||
publish-internal:
|
publish-internal:
|
||||||
# only run if all checks pass
|
# only run if all checks pass
|
||||||
needs: [commit-checks, default-checks]
|
needs: [lint-checks, default-checks]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: set build tag
|
- name: set build tag
|
||||||
|
Loading…
Reference in New Issue
Block a user