muse/.github/workflows/build.yml
Hellyson Rodrigo Parteka d8394a4bd5
chore: update Lint & build action to use nodejs 16
This is the first time I'm working with actions... I hope this works
2021-11-20 19:01:51 -05:00

29 lines
865 B
YAML

name: Lint & build
on: [pull_request]
jobs:
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