Skip to content

Commit 71ca51a

Browse files
committed
ci: setup
1 parent 4dc3dab commit 71ca51a

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
test:
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
node:
22+
- "22"
23+
- "20"
24+
- "18"
25+
- "16"
26+
- "14"
27+
name: Test
28+
runs-on: "ubuntu-latest"
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node_version }}
35+
36+
- run: |
37+
yarn --immutable
38+
yarn test
39+
yarn build
40+
yarn lint
41+
working-directory: packages/angular-html-parser
42+

packages/angular-html-parser/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"codemod": "node ./node_modules/jscodeshift/bin/jscodeshift.js -t postbuild-codemod.ts lib --extensions=js,ts --parser=ts",
2626
"test": "vitest",
2727
"release": "standard-version",
28-
"fix": "prettier . --write"
28+
"fix": "prettier . --write",
29+
"lint": "prettier . --check"
2930
},
3031
"devDependencies": {
3132
"@types/node": "22.13.10",

0 commit comments

Comments
 (0)