v1.9.1 #526
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: Build and Test | |
on: | |
push: | |
branches: | |
- coverage | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.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: Install pnpm | |
run: npm install -g pnpm | |
- name: Build | |
run: | | |
pnpm i | |
pnpm run clean | |
pnpm --sequential --stream -r run build | |
pnpm --sequential --stream -r run build:lint | |
pnpm --sequential --stream -r run lint | |
pnpm run api | |
pnpm run test | |
# coverage upload stopped working randomly | |
# - name: Test | |
# run: pnpm run test:codecov | |
# - uses: codecov/codecov-action@v3 | |
# if: matrix.node-version == '16.x' | |
# with: | |
# files: ./coverage/lcov.info | |
# name: codecov-umbrella | |
# fail_ci_if_error: true |