1234567891011121314151617181920212223242526 |
- name: test
- on:
- pull_request:
- jobs:
- test:
- strategy:
- matrix:
- node-version: ['16', '18', '20']
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-node@v4
- with:
- node-version: ${{ matrix.node-version }}
- cache: npm
- - run: npm ci
- - run: npm i -D @vitest/coverage-v8@^2.1.6
- - run: npm run lint
- - run: npm test -- --coverage
- - uses: actions/upload-artifact@v3
- with:
- name: vitest-results-${{ matrix.node-version }}
- path: coverage/*
- if: ${{ always() }}
|