-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 1.04 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
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'
- uses: nrwl/nx-set-shas@v4
- run: pnpm i
- run: pnpm exec nx report
- run: |
pnpm exec nx run tools-commitlint:exec:message --value "${{ github.event.pull_request.title }}"
pnpm exec nx run tools-commitlint:exec --from "${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }}" --to "${{ github.event.pull_request.head.sha }}"
- run: |
pnpm exec nx format:check
pnpm exec nx affected -t lint test build --configuration ci
pnpm exec nx affected -t e2e --configuration ci