mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
perf(ci): Sort CI steps by length (#4243)
* ⚡ Sort CI steps by length * 🐛 `Build` before `test` for n8n packages
This commit is contained in:
parent
fdbc11a288
commit
d47ff48fb6
6
.github/workflows/ci-master.yml
vendored
6
.github/workflows/ci-master.yml
vendored
|
@ -27,11 +27,11 @@ jobs:
|
||||||
- name: Install npm and dependencies
|
- name: Install npm and dependencies
|
||||||
run: npm install -g npm@latest && npm install
|
run: npm install -g npm@latest && npm install
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build --if-present
|
run: npm run build --if-present
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
|
||||||
- name: Lint
|
|
||||||
run: npm run lint
|
|
||||||
|
|
12
.github/workflows/ci-pull-requests.yml
vendored
12
.github/workflows/ci-pull-requests.yml
vendored
|
@ -24,12 +24,6 @@ jobs:
|
||||||
- name: Install npm and dependencies
|
- name: Install npm and dependencies
|
||||||
run: npm install -g npm@latest && npm install
|
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`
|
- name: Fetch base branch for `git diff`
|
||||||
run: git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }}
|
run: git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }}
|
||||||
|
|
||||||
|
@ -37,3 +31,9 @@ jobs:
|
||||||
env:
|
env:
|
||||||
ESLINT_PLUGIN_DIFF_COMMIT: ${{ github.event.pull_request.base.ref }}
|
ESLINT_PLUGIN_DIFF_COMMIT: ${{ github.event.pull_request.base.ref }}
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: npm run build --if-present
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: npm run test
|
||||||
|
|
Loading…
Reference in a new issue