macos-defaults/.github/workflows/test-github.yml
Yann Bertrand 062d8b5217
👷 Add a GitHub build Action
Co-authored-by: Yvonnick FRIN <frin.yvonnick@gmail.com>
2020-09-20 11:18:39 +02:00

35 lines
781 B
YAML

name: Test GitHub
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Get yarn cache
working-directory: build/github
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
working-directory: build/github
- run: yarn test
working-directory: build/github