From 72a6f3400269d0d52b9b01623b4252b44b643041 Mon Sep 17 00:00:00 2001 From: droshev Date: Tue, 8 Aug 2023 14:41:27 -0400 Subject: [PATCH] chore(ci): update and optimize PR check workflow --- .github/workflows/on-pull.yml | 41 +++++++---------------------------- 1 file changed, 8 insertions(+), 33 deletions(-) diff --git a/.github/workflows/on-pull.yml b/.github/workflows/on-pull.yml index 99bbde0e0a..33c16dbc9b 100644 --- a/.github/workflows/on-pull.yml +++ b/.github/workflows/on-pull.yml @@ -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