Merge GitHub actions into single build workflow #1457
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: main | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version-file: .nvmrc | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-cache | |
- name: Install dependencies | |
working-directory: . | |
run: yarn | |
- name: Check formatting | |
working-directory: . | |
run: yarn format:check | |
- name: Run linter | |
working-directory: . | |
run: yarn lint:check | |
- name: Build application | |
working-directory: . | |
run: yarn build |