6 automated test coverage #3
Workflow file for this run
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: Run Jasmine Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Install Jasmine | |
run: npm install jasmine --save-dev | |
- name: Initialize Jasmine | |
run: npx jasmine init | |
- name: Run tests with coverage | |
run: npm run test:coverage | |
- name: Upload coverage report | |
if: success() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: coverage |