File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Managed by sh1pt Actions Fleet
2+ # pack: node-pnpm-ci@1.2.0
3+ # install: sh1pt-actions-store
4+ # hash: sha256:4c5b9b88dee99de5f463194b4784ab267b400789a6d0f1aaf5b5dede9236376f
5+ name : CI
6+
7+ on :
8+ push :
9+ branches : [main, master]
10+ pull_request :
11+
12+ permissions :
13+ contents : read
14+
15+ concurrency :
16+ group : ci-${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : true
18+
19+ jobs :
20+ build :
21+ runs-on : ubuntu-latest
22+ timeout-minutes : 15
23+ steps :
24+ - uses : actions/checkout@v4
25+
26+ # pnpm version is read from the "packageManager" field in package.json.
27+ # Do not pin a version here — it conflicts with packageManager and fails
28+ # with ERR_PNPM_BAD_PM_VERSION.
29+ - uses : pnpm/action-setup@v4
30+
31+ - uses : actions/setup-node@v4
32+ with :
33+ node-version : ' 22'
34+ cache : pnpm
35+
36+ - run : pnpm install --frozen-lockfile
37+
38+ # typecheck / test default to `pnpm run --if-present <script>` so a repo
39+ # that hasn't defined these scripts yet gets a green workflow instead of
40+ # failing on the first step. Once the scripts exist they run normally.
41+ - run : pnpm run --if-present typecheck
42+
43+ - run : pnpm run --if-present test
You can’t perform that action at this time.
0 commit comments