-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 889 Bytes
/
main.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: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-
- run: |
npm -g install [email protected]
pnpm set verify-store-integrity false
- run: pnpm install
- run: pnpm run test:coverage
- uses: codecov/codecov-action@v2
- run: mv "$(pnpm pack | tail -n 1)" pkg.tgz
- uses: actions/upload-artifact@v2
with:
name: package-art
path: pkg.tgz