Switched to gscan testing via GitHub Actions
[editorial.git] / .github / workflows / test.yml
1 name: Test
2 on:
3 pull_request:
4 push:
5 branches:
6 - master
7
8 jobs:
9 build:
10 runs-on: ubuntu-18.04
11 strategy:
12 matrix:
13 node: [ '10' ]
14 name: Node ${{ matrix.node }}
15 steps:
16 - uses: actions/checkout@v1
17 - name: Cache node modules
18 uses: actions/cache@v1
19 with:
20 path: node_modules
21 key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
22 restore-keys: |
23 ${{ runner.OS }}-build-${{ env.cache-name }}-
24 ${{ runner.OS }}-build-
25 ${{ runner.OS }}-
26 - name: Setup node
27 uses: actions/setup-node@v1
28 with:
29 node-version: ${{ matrix.node }}
30 - run: npm install yarn
31 - run: yarn install
32 - run: yarn test:ci