Skip to content

Commit c1de52a

Browse files
fix: add ci
1 parent 4f0ed00 commit c1de52a

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
name: CI - build & test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
- name: Set up NodeJS
19+
uses: actions/setup-node@v4
20+
with:
21+
cache: pnpm
22+
- name: Install dependencies
23+
run: pnpm install --ignore-scripts
24+
- name: Run linting/formatting checks
25+
run: pnpm lint:ci

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
matrix:
2929
os:
30-
- "ubuntu-20.04"
30+
- ubuntu-latest
3131
- windows-latest
3232
- macos-latest
3333
steps:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"scripts": {
1111
"postinstall": "pnpm -r compile-ts",
1212
"lint": "biome lint --fix",
13+
"lint:ci": "biome lint",
1314
"prepare": "husky"
1415
},
1516
"keywords": [],

0 commit comments

Comments
 (0)