chore(deps-dev): update linters (major) #1713
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
# Build and test when pull request is made to protected branches. | |
# This workflow will run integration tests against multiple versions of Node. | |
name: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
- next | |
- beta | |
- alpha | |
- release/* | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
node: ['16'] | |
name: Lint on Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'yarn' | |
- run: yarn install | |
- name: Lint | |
run: yarn lint | |
test: | |
strategy: | |
matrix: | |
node: ['12', '14', '16'] | |
name: Test on Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'yarn' | |
- run: yarn install | |
- name: Test | |
run: yarn test | |
build: | |
strategy: | |
matrix: | |
node: ['12', '14', '16'] | |
name: Build on Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'yarn' | |
- run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Check Files | |
uses: JJ/files-present-action@releases/v1 | |
with: | |
files: 'package.json, LICENSE, README.md, lib, lib/index.js, lib/index.d.ts' |