mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-23 12:07:40 +00:00
33 lines
768 B
YAML
33 lines
768 B
YAML
|
name: Test
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-18.04
|
||
|
strategy:
|
||
|
matrix:
|
||
|
node: [ '10' ]
|
||
|
name: Node ${{ matrix.node }}
|
||
|
steps:
|
||
|
- uses: actions/checkout@v1
|
||
|
- name: Cache node modules
|
||
|
uses: actions/cache@v1
|
||
|
with:
|
||
|
path: node_modules
|
||
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
|
||
|
restore-keys: |
|
||
|
${{ runner.OS }}-build-${{ env.cache-name }}-
|
||
|
${{ runner.OS }}-build-
|
||
|
${{ runner.OS }}-
|
||
|
- name: Setup node
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: ${{ matrix.node }}
|
||
|
- run: npm install yarn
|
||
|
- run: yarn install
|
||
|
- run: yarn test:ci
|