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

pr.yml

73 lines2.4 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:
18 name: Test
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: Start Nx Agents
27 run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
28 - name: Setup Tools
29 uses: TanStack/config/.github/setup@99d23c6212f36eff17d30a21e58da77f55a4cfe9 # main
30 - name: Get base and head commits for `nx affected`
31 uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
32 with:
33 main-branch-name: main
34 - name: Run Checks
35 run: pnpm run test:pr --parallel=3
36 - name: Stop Nx Agents
37 if: ${{ always() }}
38 run: npx nx-cloud stop-all-agents
39 - name: Upload coverage to Codecov
40 uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
41 with:
42 directory: packages
43 env:
44 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
45 preview:
46 name: Preview
47 runs-on: ubuntu-latest
48 steps:
49 - name: Checkout
50 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
51 with:
52 persist-credentials: false
53 - name: Setup Tools
54 uses: TanStack/config/.github/setup@99d23c6212f36eff17d30a21e58da77f55a4cfe9 # main
55 - name: Build Packages
56 run: pnpm run build:all
57 - name: Publish Previews
58 run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
59 version-preview:
60 name: Version Preview
61 runs-on: ubuntu-latest
62 permissions:
63 contents: read
64 pull-requests: write
65 steps:
66 - name: Checkout
67 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
68 with:
69 persist-credentials: false
70 - name: Setup Tools
71 uses: TanStack/config/.github/setup@99d23c6212f36eff17d30a21e58da77f55a4cfe9 # main
72 - name: Changeset Preview
73 uses: TanStack/config/.github/changeset-preview@99d23c6212f36eff17d30a21e58da77f55a4cfe9 # main