From d47ff48fb633cb93cc1df2be06f9608f4f23c14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 10 Oct 2022 17:46:50 +0200 Subject: [PATCH] perf(ci): Sort CI steps by length (#4243) * :zap: Sort CI steps by length * :bug: `Build` before `test` for n8n packages --- .github/workflows/ci-master.yml | 6 +++--- .github/workflows/ci-pull-requests.yml | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) 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