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 72a6f34
Showing 1 changed file with 8 additions and 33 deletions.
41 changes: 8 additions & 33 deletions .github/workflows/on-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,21 @@ env:

jobs:
one_run:
name: Cancel Previous Runs
name: PR checks
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
name: Setup Node.js and Cache
- uses: wagoid/commitlint-github-action@v5
name: commit lint
- 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 72a6f34

Please sign in to comment.