Skip to content

Commit 421408b

Browse files
committed
ci: add workflow
1 parent 39a2e05 commit 421408b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
concurrency:
9+
# Pushing new changes to a branch will cancel any in-progress CI runs
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
env:
14+
# reduces noise from npm post-install scripts
15+
DISABLE_OPENCOLLECTIVE: true
16+
OPEN_SOURCE_CONTRIBUTOR: true
17+
NPM_CONFIG_AUDIT: false
18+
NPM_CONFIG_FUND: false
19+
20+
# Restrict jobs in this workflow to have no permissions by default; permissions
21+
# should be granted per job as needed using a dedicated `permissions` block
22+
permissions: {}
23+
24+
jobs:
25+
reproduce:
26+
permissions:
27+
contents: read
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 15
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
persist-credentials: false
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 20.x
37+
cache: 'npm'
38+
39+
- run: npm ci
40+
- run: npm run typescript

0 commit comments

Comments
 (0)