Update README.md #801
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: Pull requests | |
on: pull_request | |
jobs: | |
build: | |
name: Build & test with "Node.js v${{ matrix.node-version }}" on "${{ matrix.os }}" | |
strategy: | |
fail-fast: false # don't cancel all jobs if some of them failed | |
matrix: | |
node-version: [ | |
12, | |
10 | |
] | |
os: [ | |
ubuntu-latest, | |
macOS-latest | |
] | |
exclude: | |
# excludes node 10 on macOS | |
- os: macOS-latest | |
node-version: 10 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Node.js v${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn build | |
- name: Lint | |
run: yarn lint | |
- name: Setup tests | |
run: yarn pretest | |
- name: Test | |
run: yarn test:coverage | |
- name: Cleanup tests | |
run: yarn posttest |