Merge pull request #95 from mdenet/2-first-time-user-issues-github-lo… #57
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-unit-tests | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Chrome | |
run: | | |
sudo apt-get update | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo apt install ./google-chrome-stable_current_amd64.deb | |
- name: Setup node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install node dependencies | |
run: | | |
npm ci | |
npm install -g karma-cli | |
- name: Build the education platform | |
run: npm run build --workspaces | |
- name: Run the unit tests | |
run: npm test --workspaces | |
- name: Create test report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: Unit Test Results | |
path: platform/reports/*.xml | |
reporter: java-junit | |
fail-on-error: true |