mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-11-16 02:06:32 +00:00
88e3db9d3b
no issue
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
|