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

pr.yml

63 lines1.9 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23 with:
24 fetch-depth: 0
25 persist-credentials: false
26 - name: Setup Tools
27 uses: tanstack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main
28 - name: Build
29 run: pnpm build
30 - name: Test Unit
31 run: pnpm test:unit
32 provenance:
33 name: Provenance
34 runs-on: ubuntu-latest
35 steps:
36 - name: Checkout
37 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38 with:
39 fetch-depth: 0
40 persist-credentials: false
41 - name: Check Provenance
42 uses: danielroe/provenance-action@41bcc969e579d9e29af08ba44fcbfdf95cee6e6c # v0.1.1
43 with:
44 fail-on-downgrade: true
45 test-e2e:
46 name: Test (E2E Blocking)
47 runs-on: ubuntu-latest
48 steps:
49 - name: Checkout
50 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
51 with:
52 fetch-depth: 0
53 persist-credentials: false
54 - name: Setup Tools
55 uses: tanstack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main
56 - name: Get base and head commits for `nx affected`
57 uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
58 with:
59 main-branch-name: main
60 - name: Install Playwright Chrome
61 run: pnpm --filter @tanstack/cli exec playwright install --with-deps chrome
62 - name: Test E2E Blocking
63 run: pnpm nx affected --target=test:e2e --parallel=3