⬆️ Update dependency knip to v5.39.1 #3155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request | |
on: | |
pull_request: | |
branches: ['development'] | |
jobs: | |
pr-job: | |
strategy: | |
matrix: | |
command: ['build', 'lint'] | |
name: ${{ matrix.command }} | |
timeout-minutes: 60 | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Node.js PR workflow step ${{ matrix.command }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
run: | | |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- name: Setup pnpm cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Prepare .nuxt directory | |
run: pnpm run nuxt:prepare | |
- name: Generate build metadata | |
run: | | |
pnpm build:metadata | |
cat ./client/buildMetadata.json | |
- name: Run ${{ matrix.command }} | |
run: NODE_OPTIONS=--max-old-space-size=4096 pnpm run ${{ matrix.command }} | |
e2e: | |
name: e2e tests | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Node.js PR workflow step ${{ matrix.command }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- name: Install e2e test dependencies | |
run: pnpm --filter=./tests install --frozen-lockfile | |
- name: Generate build metadata | |
run: | | |
pnpm build:metadata | |
cat ./client/buildMetadata.json | |
- name: Prepare docker environment and run e2e tests | |
run: pnpm run e2e | |
- name: Upload e2e test results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: e2e-test-results | |
path: ./tests/cypress/videos/ |