CI #1847
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: CI | |
on: | |
push: | |
branches: | |
- master | |
- 'v*' # older version branches | |
tags: | |
- '*' | |
pull_request: | |
schedule: | |
- cron: '0 6 * * 0' # weekly, on sundays | |
jobs: | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: 16.x | |
- name: install dependencies | |
run: yarn install | |
- name: linting | |
run: yarn lint | |
test: | |
name: "Node ${{ matrix.node }}: ${{ matrix.os }}" | |
runs-on: "${{ matrix.os }}-latest" | |
strategy: | |
matrix: | |
node: ['12', '14', '16', '17'] | |
os: [ubuntu, windows] | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- run: yarn install | |
- run: yarn build | |
- name: test | |
run: yarn npm-run-all test:* | |
floating-test: | |
name: Floating dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: '16.x' | |
- run: yarn install --no-lockfile | |
- run: yarn build | |
- name: test | |
run: yarn test:jest |