chore: remove commitizen #3945
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
test_js: | |
name: "Test - Node: ${{ matrix.node_version }} - TS: ${{ matrix.ts_version }} - OS: ${{ matrix.os }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- "ubuntu-latest" | |
node_version: | |
- "16" | |
- "18" | |
- "20" | |
- "latest" | |
ts_version: | |
- "next" | |
- "latest" | |
- "4.3.5" | |
# - "JS" | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.ts_version == 'next' }} | |
env: | |
REPORT_COVERAGE: ${{ fromJSON('["false", "true"]')[matrix.node_version == 'latest' && matrix.os == 'ubuntu-latest'] }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/prepare | |
- name: Build | |
run: pnpm run build:node | |
- name: Compile Tests | |
run: pnpm run build-tests | |
- name: Setup NodeJs ${{ matrix.node_version }} for testing | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Remove Dev TypeScript | |
run: pnpm remove typescript | |
- name: Add TypeScript "${{ matrix.ts_version }}" | |
if: matrix.ts_version != 'JS' | |
run: pnpm add -D typescript@"${{ matrix.ts_version }}" | |
- name: Run Tests | |
run: pnpm test-compiled | |
- name: Report coverage | |
uses: codecov/[email protected] | |
if: env.REPORT_COVERAGE == 'true' | |
with: | |
file: coverage/lcov.info | |
flags: ${{ matrix.ts_version }} |