Skip to content

Commit 068220b

Browse files
Add .github/workflows/ci.yml via sh1pt node-pnpm-ci@1.2.0
1 parent 735c4b7 commit 068220b

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)