27 lines
544 B
YAML
27 lines
544 B
YAML
name: Optimized Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
shard: [1, 2, 3, 4]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run tests (shard ${{ matrix.shard }})
|
|
run: npm run test:unit -- --shard=${{ matrix.shard }}/4
|
|
|
|
- name: Upload coverage
|
|
if: matrix.shard == 4
|
|
uses: codecov/codecov-action@v4
|