-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added windows testing edge launcher and github action.
- Loading branch information
1 parent
c24c215
commit 7501674
Showing
4 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,3 +135,58 @@ jobs: | |
- name: Output coverage to summary | ||
if: success() || failure() && steps.run-unit-tests.outcome == 'success' | ||
run: cat ./platform/reports/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | ||
|
||
|
||
build-win: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup node 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install node dependencies | ||
run: | | ||
npm ci | ||
npm install -g karma-cli | ||
- name: Build the education platform | ||
id: build-platform | ||
if: success() || failure() | ||
run: npm run build --workspaces | ||
|
||
- name: Run the unit tests | ||
id: run-unit-tests | ||
if: success() || failure() && steps.build-platform.outcome == 'success' | ||
run: npm test --workspaces -- --browsers EdgeHeadless | ||
|
||
- name: Create test report | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() && steps.run-unit-tests.outcome == 'success' | ||
with: | ||
name: Unit Test Results - win | ||
path: platform/reports/TESTS*.xml | ||
reporter: java-junit | ||
fail-on-error: true | ||
|
||
- name: Setup .NET Core - for coverage report # Required to execute ReportGenerator | ||
uses: actions/setup-dotnet@v4 | ||
if: success() || failure() && steps.run-unit-tests.outcome == 'success' | ||
with: | ||
dotnet-version: 8.x | ||
dotnet-quality: 'ga' | ||
|
||
- name: Create coverage md report | ||
uses: danielpalme/[email protected] | ||
if: success() || failure() && steps.run-unit-tests.outcome == 'success' | ||
with: | ||
reports: ./platform/reports/coverage-report.xml | ||
targetdir: ./platform/reports/ | ||
reporttypes: MarkdownSummaryGithub | ||
|
||
- name: Output coverage to summary | ||
if: success() || failure() && steps.run-unit-tests.outcome == 'success' | ||
run: cat ./platform/reports/SummaryGithub.md >> $GITHUB_STEP_SUMMARY |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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