Merge pull request #34 from sanctuarycomputer/clean-up #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- master | |
jobs: | |
lint: | |
name: Lint JS files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: zendesk/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: zendesk/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: ESlint | |
run: yarn eslint | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: zendesk/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: zendesk/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn build |