Skip to content

Commit 9d4fd5e

Browse files
committed
added github workflow
1 parent 5cc1fc6 commit 9d4fd5e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
setup:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- uses: actions/cache@v4
12+
id: yarn-cache
13+
with:
14+
path: node_modules
15+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
16+
17+
- name: Install dependencies
18+
run: yarn install
19+
20+
lint:
21+
runs-on: ubuntu-22.04
22+
needs: setup
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: actions/cache@v4
26+
id: yarn-cache
27+
with:
28+
path: node_modules
29+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
30+
- name: Run lint test
31+
run: yarn lint
32+
33+
test-publish:
34+
runs-on: ubuntu-22.04
35+
needs: setup
36+
steps:
37+
- uses: actions/checkout@v3
38+
- uses: actions/cache@v4
39+
id: yarn-cache
40+
with:
41+
path: node_modules
42+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43+
- name: Run publish test
44+
run: yarn test-publish
45+

0 commit comments

Comments
 (0)