Skip to content

Commit 7e4d1a9

Browse files
authored
ci: added workflows (#12)
* ci: added workflows * ci: added workflows
1 parent 69e022e commit 7e4d1a9

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 🌈 CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
branches:
10+
- master
11+
12+
workflow_dispatch:
13+
14+
jobs:
15+
unit test and lint:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- uses: pnpm/action-setup@v2
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
26+
cache: pnpm
27+
28+
- name: Install
29+
run: pnpm install --no-frozen-lockfile
30+
31+
- name: lint fix
32+
run: pnpm run lint:fix
33+
34+
- name: unit test
35+
run: pnpm run test

0 commit comments

Comments
 (0)