phantasmal-world/.github/workflows/tests.yml
2020-10-01 17:00:14 +02:00

44 lines
847 B
YAML

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Yarn cache
uses: actions/cache@v2
env:
cache-name: yarn-cache
with:
path: .yarn/cache
key: ${{ runner.os }}-tests-${{ env.cache-name }}
- name: Install dependencies
uses: CultureHQ/actions-yarn@v1.0.1
with:
args: install
- name: Lint
uses: CultureHQ/actions-yarn@v1.0.1
with:
args: lint
- name: Check formatting
uses: CultureHQ/actions-yarn@v1.0.1
with:
args: check_formatting
- name: Test
uses: CultureHQ/actions-yarn@v1.0.1
with:
args: test