ci: Fix ci-master workflow (#12921)

This commit is contained in:
Tomi Turtiainen 2025-01-29 16:39:18 +02:00 committed by GitHub
parent 323e87825e
commit 152310b7a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -7,7 +7,9 @@ on:
jobs:
install-and-build:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2204
env:
NODE_OPTIONS: '--max-old-space-size=4096'
timeout-minutes: 10
@ -15,7 +17,7 @@ jobs:
- uses: actions/checkout@v4.1.1
- run: corepack enable
- uses: actions/setup-node@v4.0.2
- uses: useblacksmith/setup-node@v5
with:
node-version: 20.x
cache: pnpm
@ -24,13 +26,13 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Setup build cache
uses: rharkor/caching-for-turbo@v1.5
uses: useblacksmith/caching-for-turbo@v1
- name: Build
run: pnpm build
- name: Cache build artifacts
uses: actions/cache/save@v4.0.0
uses: useblacksmith/cache/save@v5
with:
path: ./packages/**/dist
key: ${{ github.sha }}-base:build

View file

@ -47,6 +47,7 @@ jobs:
with:
path: ./packages/**/dist
key: ${{ inputs.cacheKey }}
fail-on-cache-miss: true
- name: Lint Backend
run: pnpm lint:backend

View file

@ -70,6 +70,7 @@ jobs:
with:
path: ./packages/**/dist
key: ${{ inputs.cacheKey }}
fail-on-cache-miss: true
- name: Test Backend
run: pnpm test:backend