Merge pull request #34 from patricklx/patch-4 #265
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: | |
- main | |
- '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/checkout@v1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: install yarn | |
run: npm install -g yarn | |
- name: install dependencies | |
run: yarn install --frozen-lockfile | |
- name: linting | |
run: yarn lint | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['14', '18'] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: install yarn | |
run: npm install -g yarn | |
- name: install dependencies | |
run: yarn install --frozen-lockfile | |
- name: test | |
run: yarn test | |
floating-test: | |
name: Floating dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: install yarn | |
run: npm install -g yarn | |
- name: install dependencies | |
run: yarn install --no-lockfile | |
- name: test | |
run: yarn test |