-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1001 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
35
36
37
38
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
strategy:
matrix:
node: [ '10', '12' ]
name: Node ${{ matrix.node }} test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- 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@v1
- run: mv "$(pnpm pack | tail -n 1)" pkg.tgz
- uses: actions/upload-artifact@v2
with:
name: package-art
path: pkg.tgz