[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-vue3-module.
1.0 kB
50 lines
1name: ci
2
3on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10
11jobs:
12 ci:
13 runs-on: ${{ matrix.os }}
14
15 strategy:
16 matrix:
17 os: [ubuntu-latest, macos-latest, windows-latest]
18 node: [12, 14]
19
20 steps:
21 - uses: actions/setup-node@v2
22 with:
23 node-version: ${{ matrix.node }}
24
25 - name: checkout
26 uses: actions/checkout@v2
27
28 - name: Get yarn cache directory path
29 id: yarn-cache-dir-path
30 run: echo "::set-output name=dir::$(yarn cache dir)"
31
32 - uses: actions/cache@v2
33 id: yarn-cache
34 with:
35 path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
36 key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles('**/yarn.lock') }}
37 restore-keys: |
38 ${{ matrix.os }}-yarn-
39
40 - name: Install dependencies
41 run: yarn
42
43 - name: Lint
44 run: yarn lint:all
45
46 - name: Test
47 run: yarn test
48
49 - name: Coverage
50 uses: codecov/codecov-action@v2