Skip to content

Commit

Permalink
chore(ci): update and optimize PR check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
droshev committed Aug 8, 2023
1 parent 55f4aff commit 497b074
Showing 1 changed file with 4 additions and 31 deletions.
35 changes: 4 additions & 31 deletions .github/workflows/on-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ secrets.GHACTIONS }}

commit_lint:
runs-on: ubuntu-latest
name: Lint commit message
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v3

install:
runs-on: ubuntu-latest
name: Dependency installation
needs: one_run
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/nodejs
name: Install dependencies

lint:
runs-on: ubuntu-latest
name: Lint code
needs: install
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/nodejs
- uses: wagoid/commitlint-github-action@v5
- run: yarn run lint

build:
runs-on: ubuntu-latest
name: Build and bundle size check
needs: install
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/nodejs
- uses: ./.github/actions/build

0 comments on commit 497b074

Please sign in to comment.