Allow tests to be run on pull requests #62
Workflow file for this run
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: Tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linux-test: | |
name: Linux | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14, latest] | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Node ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Lint with prettier | |
run: yarn lint | |
- name: Run tests | |
run: yarn test |