-
Notifications
You must be signed in to change notification settings - Fork 19
34 lines (32 loc) · 835 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
name: Continuous Integration
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Cahce dependencies
uses: actions/cache@v3
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.OS }}-node-18.x-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-18.x
${{ runner.OS }}-
- name: Install dependencies
run: |
npm install
- name: Lint and build
run: |
npm run lint
npm run rollup
npm run babel