2.1.3 #59
This file contains hidden or 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: RunTests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| - feat/* | |
| pull_request: | |
| branches: ['main'] | |
| types: [opened, reopened, edited] | |
| workflow_call: | |
| permissions: | |
| checks: write | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| RunTestSuite: | |
| if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
| name: Run Test Suite | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo and submodules | |
| uses: actions/checkout@v4 | |
| - name: Install NodeJS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Install node packages | |
| run: npm install | |
| - name: Run tests | |
| run: npm run test:coverage | |
| - name: Report Coverage | |
| if: (!cancelled()) | |
| uses: davelosert/vitest-coverage-report-action@v2 | |
| - name: Publish JUnit Test Report | |
| if: (!cancelled()) && (success() || failure()) | |
| uses: mikepenz/action-junit-report@v5 | |
| with: | |
| report_paths: reports/junit.xml | |
| check_name: 'Vitest JUnit' | |