Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

pr.yml

60 lines1.5 KB

1name: PR
2​
3on:
4 pull_request:
5​
6concurrency:
7 group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
8 cancel-in-progress: true
9​
10env:
11 NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
12​
13permissions:
14 contents: read
15​
16jobs:
17 test-unit:
18 name: Test (Unit)
19 runs-on: ubuntu-latest
20 steps:
21 - name: Checkout
22 uses: actions/checkout@v6.0.1
23 with:
24 fetch-depth: 0
25 - name: Setup Tools
26 uses: tanstack/config/.github/setup@main
27 - name: Build
28 run: pnpm build
29 - name: Test Unit
30 run: pnpm test:unit
31 provenance:
32 name: Provenance
33 runs-on: ubuntu-latest
34 steps:
35 - name: Checkout
36 uses: actions/checkout@v6.0.1
37 with:
38 fetch-depth: 0
39 - name: Check Provenance
40 uses: danielroe/provenance-action@v0.1.1
41 with:
42 fail-on-downgrade: true
43 test-e2e:
44 name: Test (E2E Blocking)
45 runs-on: ubuntu-latest
46 steps:
47 - name: Checkout
48 uses: actions/checkout@v6.0.1
49 with:
50 fetch-depth: 0
51 - name: Setup Tools
52 uses: tanstack/config/.github/setup@main
53 - name: Get base and head commits for `nx affected`
54 uses: nrwl/nx-set-shas@v4.4.0
55 with:
56 main-branch-name: main
57 - name: Install Playwright Chrome
58 run: pnpm --filter @tanstack/cli exec playwright install --with-deps chrome
59 - name: Test E2E Blocking
60 run: pnpm nx affected --target=test:e2e --parallel=3