mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
ci: Reuse common build actions and fix turbo outputs (no-changelog) (#15830)
This commit is contained in:
26
.github/workflows/ci-pull-requests.yml
vendored
26
.github/workflows/ci-pull-requests.yml
vendored
@@ -17,23 +17,11 @@ jobs:
|
||||
with:
|
||||
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||
|
||||
- uses: useblacksmith/setup-node@65c6ca86fdeb0ab3d85e78f57e4f6a7e4780b391 # v5
|
||||
- name: Setup Environment and Build Project
|
||||
uses: ./.github/actions/setup-and-build
|
||||
with:
|
||||
node-version: 20.x
|
||||
|
||||
- name: Setup corepack and pnpm
|
||||
run: |
|
||||
npm i -g corepack@0.31
|
||||
corepack enable
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Setup build cache
|
||||
uses: useblacksmith/caching-for-turbo@bafb57e7ebdbf1185762286ec94d24648cd3938a # v1
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
node-version: '20.x'
|
||||
enable-caching: true
|
||||
|
||||
- name: Run formatcheck
|
||||
run: pnpm format:check
|
||||
@@ -41,12 +29,6 @@ jobs:
|
||||
- name: Run typecheck
|
||||
run: pnpm typecheck
|
||||
|
||||
- name: Cache build artifacts
|
||||
uses: useblacksmith/cache/save@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5
|
||||
with:
|
||||
path: ./packages/**/dist
|
||||
key: ${{ github.sha }}-base:build
|
||||
|
||||
unit-test:
|
||||
name: Unit tests
|
||||
uses: ./.github/workflows/units-tests-reusable.yml
|
||||
|
||||
Reference in New Issue
Block a user