Merge pull request #68 from trouchet/renovate/babel-monorepo #183
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 coverage CI | |
on: | |
push: | |
branches: ["main", "development"] | |
pull_request: | |
branches: ["main", "development"] | |
jobs: | |
test-codecov: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 42 | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, macos-latest, windows-latest] | |
node-version: [16.x, 18.x, 19.x] | |
exclude: | |
- os: ubuntu-18.04 | |
node-version: 18.x | |
- os: ubuntu-18.04 | |
node-version: 19.x | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Test using Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests and collect coverage | |
run: npm run test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |