This repository has been archived by the owner on Jan 18, 2025. It is now read-only.
Bump braces and jest #92
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: Node.js CI | |
on: | |
push: | |
branches: | |
- '**' | |
- '!test/*' | |
pull_request: | |
branches: | |
- '**' | |
- '!test/*' | |
jobs: | |
quality: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x, 11.x, 12.x, 13.x, 14.x, 15.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
run: npm ci | |
- name: Run lint | |
run: npm run lint | |
- name: Run test | |
run: npm test | |
build: | |
needs: quality | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x, 11.x, 12.x, 13.x, 14.x, 15.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
run: npm ci | |
- name: Build | |
run: npm run build --if-present |