2020-11-18 20:03:23 +01:00
|
|
|
name: Lint & build
|
|
|
|
|
2021-12-16 20:00:21 +01:00
|
|
|
on: push
|
2020-11-18 20:03:23 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-12-16 20:00:21 +01:00
|
|
|
build:
|
|
|
|
name: Lint & build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '16'
|
|
|
|
- name: Cache dependencies
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ./node_modules
|
|
|
|
key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.OS }}-dependencies-${{ env.cache-name }}-
|
|
|
|
${{ runner.OS }}-dependencies-
|
|
|
|
${{ runner.OS }}-
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn install
|
|
|
|
- name: Run lint
|
|
|
|
run: yarn lint
|
|
|
|
- name: Build
|
|
|
|
run: yarn build
|