fix: validate that the upgrade-scripts look correct (like an array of… #350
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 CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Prepare Environment | |
run: | | |
corepack enable | |
yarn install | |
yarn build | |
env: | |
CI: true | |
# - name: Run typecheck and linter | |
# run: | | |
# yarn lint | |
# env: | |
# CI: true | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Prepare Environment | |
run: | | |
corepack enable | |
yarn install | |
env: | |
CI: true | |
- name: Run tests | |
run: | | |
yarn unit | |
env: | |
CI: true | |
# - name: Send coverage | |
# uses: codecov/codecov-action@v3 | |
# if: matrix.node-version == '18.x' | |
- name: Check docs generation | |
if: matrix.node-version == '18.x' | |
run: | | |
yarn build | |
yarn docs:html | |
env: | |
CI: true |