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 fd91e41
Showing 1 changed file with 12 additions and 29 deletions.
41 changes: 12 additions & 29 deletions .github/workflows/on-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,26 @@ jobs:
name: Cancel Previous Runs
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:
name: Commit Lint
runs-on: ubuntu-latest
name: Lint commit message
steps:
- uses: actions/checkout@v2.4.0
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v3

install:
steps:
- uses: wagoid/commitlint-github-action@v5
name: Commit Lint
checks:
name: PR checks
runs-on: ubuntu-latest
name: Dependency installation
needs: one_run
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- 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
name: Setup Node.js and Cache
- 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
name: Code Lint
- uses: ./.github/actions/build
name: Build and Bundle Size Check

0 comments on commit fd91e41

Please sign in to comment.