-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathaction.yml
More file actions
80 lines (68 loc) · 2.17 KB
/
action.yml
File metadata and controls
80 lines (68 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: 'Setup Project'
description: 'Centralized setup for CI jobs'
inputs:
node-version-file:
description: 'Node version file'
required: false
default: '.node-version'
pnpm-cache-folder:
description: 'pnpm cache folder'
required: false
default: '.pnpm-store'
CODECOV_TOKEN:
description: 'CODECOV_TOKEN'
required: true
runs:
using: 'composite'
steps:
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Setup pnpm config
run: pnpm config set store-dir ${{ inputs.pnpm-cache-folder }} --global
shell: bash
- uses: actions/setup-node@v6
with:
node-version-file: ${{ inputs.node-version-file }}
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Update npm
run: npm install -g npm@latest
shell: bash
- name: Install dependencies
run: pnpm install --frozen-lockfile
shell: bash
# Temporarily disable Nx Cloud until security concern is resolved
# - name: Nx Cloud start
# run: pnpm dlx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yml" --stop-agents-after="e2e-ci" --with-env-vars="CODECOV_TOKEN"
# shell: bash
# env:
# CODECOV_TOKEN: ${{ inputs.CODECOV_TOKEN }}
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright
run: pnpm exec playwright install
shell: bash
- name: Set Nx SHAs
uses: nrwl/nx-set-shas@v4
- name: Check TS References are Synced
shell: bash
run: pnpm nx sync:check
- name: Run Nx build/lint/test/e2e
# Temporarily disable e2e-ci until we get Nx Cloud back
run: pnpm exec nx affected -t build lint test e2e
shell: bash
- name: Upload Playwright report
uses: actions/upload-artifact@v5
if: ${{ !cancelled() }}
with:
name: playwright-report
path: |
./e2e/*/.playwright/**
./e2e/**/.playwright/**
retention-days: 30