mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
ci: Fix ci-master workflow (#12921)
This commit is contained in:
10
.github/workflows/ci-master.yml
vendored
10
.github/workflows/ci-master.yml
vendored
@@ -7,7 +7,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install-and-build:
|
install-and-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: blacksmith-2vcpu-ubuntu-2204
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: '--max-old-space-size=4096'
|
||||||
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
@@ -15,7 +17,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4.1.1
|
- uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
- run: corepack enable
|
- run: corepack enable
|
||||||
- uses: actions/setup-node@v4.0.2
|
- uses: useblacksmith/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
@@ -24,13 +26,13 @@ jobs:
|
|||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Setup build cache
|
- name: Setup build cache
|
||||||
uses: rharkor/caching-for-turbo@v1.5
|
uses: useblacksmith/caching-for-turbo@v1
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Cache build artifacts
|
- name: Cache build artifacts
|
||||||
uses: actions/cache/save@v4.0.0
|
uses: useblacksmith/cache/save@v5
|
||||||
with:
|
with:
|
||||||
path: ./packages/**/dist
|
path: ./packages/**/dist
|
||||||
key: ${{ github.sha }}-base:build
|
key: ${{ github.sha }}-base:build
|
||||||
|
|||||||
1
.github/workflows/linting-reusable.yml
vendored
1
.github/workflows/linting-reusable.yml
vendored
@@ -47,6 +47,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ./packages/**/dist
|
path: ./packages/**/dist
|
||||||
key: ${{ inputs.cacheKey }}
|
key: ${{ inputs.cacheKey }}
|
||||||
|
fail-on-cache-miss: true
|
||||||
|
|
||||||
- name: Lint Backend
|
- name: Lint Backend
|
||||||
run: pnpm lint:backend
|
run: pnpm lint:backend
|
||||||
|
|||||||
1
.github/workflows/units-tests-reusable.yml
vendored
1
.github/workflows/units-tests-reusable.yml
vendored
@@ -70,6 +70,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ./packages/**/dist
|
path: ./packages/**/dist
|
||||||
key: ${{ inputs.cacheKey }}
|
key: ${{ inputs.cacheKey }}
|
||||||
|
fail-on-cache-miss: true
|
||||||
|
|
||||||
- name: Test Backend
|
- name: Test Backend
|
||||||
run: pnpm test:backend
|
run: pnpm test:backend
|
||||||
|
|||||||
Reference in New Issue
Block a user