-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1012 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI Pipeline
on: [ push, pull_request ]
jobs:
setup:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
lint:
runs-on: ubuntu-22.04
needs: setup
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Run lint test
run: yarn lint
test-publish:
runs-on: ubuntu-22.04
needs: setup
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Run publish test
run: yarn test-publish