quick save: Fri Jan 24 12:54:00 MSK 2025 #85
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: Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main, dev] | |
paths: | |
- 'src/**' | |
- 'testMocks/**' | |
- '*.spec.ts' | |
- 'vite.config.ts' | |
- 'rollup.config.js' | |
- 'gh-page/**' | |
jobs: | |
test-coverage: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v4 | |
- name: 'Set up Node.js' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 23 | |
registry-url: https://registry.npmjs.org/ | |
- name: 'Install dependencies' | |
run: npm install | |
- name: 'Compile, build, bundle, report deps graph' | |
run: npm run build | |
- name: 'Test and report coverage' | |
run: npm run coverage | |
- name: 'Upload coverage report to coveralls.io' | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: ./gh-page/coverage/clover.xml | |
- name: 'Upload coverage and bundled deps reports to github actions' | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./gh-page | |
commit_message: 'Coverage: ${{ github.event.head_commit.message }}' |