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