diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index f340184a82..d1da655d9d 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -27,11 +27,11 @@ jobs: - name: Install npm and dependencies run: npm install -g npm@latest && npm install + - name: Lint + run: npm run lint + - name: Build run: npm run build --if-present - name: Test run: npm run test - - - name: Lint - run: npm run lint diff --git a/.github/workflows/ci-pull-requests.yml b/.github/workflows/ci-pull-requests.yml index 3be4f949fa..e44c25c0d7 100644 --- a/.github/workflows/ci-pull-requests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -24,12 +24,6 @@ jobs: - name: Install npm and dependencies run: npm install -g npm@latest && npm install - - name: Build - run: npm run build --if-present - - - name: Test - run: npm run test - - name: Fetch base branch for `git diff` run: git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }} @@ -37,3 +31,9 @@ jobs: env: ESLINT_PLUGIN_DIFF_COMMIT: ${{ github.event.pull_request.base.ref }} run: npm run lint + + - name: Build + run: npm run build --if-present + + - name: Test + run: npm run test