-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.29 KB
/
ci.yml
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
name: ci
on:
pull_request:
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
main:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
# this fails unpredictable with 'Request failed with status code 429. Your organization has exceeded your plan's concurrent connection limit of 10.'
# this seems to corelate with the number of agents, need to read docs.
# - run: pnpx nx-cloud start-ci-run --distribute-on='4 linux-medium-js' --stop-agents-after='e2e-vite-version-matrix'
- uses: nrwl/nx-set-shas@v4
- run: pnpm i
- run: pnpm nx report
- run: pnpm nx run tools-commitlint:exec:message --value "${{ github.event.pull_request.title }}"
env:
NX_CLOUD_DISTRIBUTED_EXECUTION: false
- run: |
pnpm nx format:check
pnpm nx affected -t lint-eslint test test-vite build e2e-vite-version-matrix --configuration ci
env:
NX_VERBOSE_LOGGING: ${{ runner.debug && true || false }}