-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/improve build pipeline #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,10 +41,11 @@ jobs: | |
| run: npm run build:prod | ||
|
|
||
| - name: Run unit tests | ||
| id: unit-tests | ||
| run: npm run test:prod | ||
|
|
||
| - name: Upload Test Results Report | ||
| if: always() | ||
| - name: Upload Test Result Report | ||
| if: steps.unit-tests.conclusion != 'skipped' | ||
|
||
| uses: dorny/test-reporter@fe45e9537387dac839af0d33ba56eed8e24189e8 # v2.3.0 | ||
| with: | ||
| name: Test Results | ||
|
|
@@ -53,7 +54,7 @@ jobs: | |
| report-title: Test Results | ||
|
|
||
| - name: Create Code Coverage Summary Report | ||
| if: always() | ||
| if: steps.unit-tests.conclusion != 'skipped' | ||
|
||
| uses: irongut/CodeCoverageSummary@51cc3a756ddcd398d447c044c02cb6aa83fdae95 #v1.3.0 | ||
| with: | ||
| filename: "test_results/coverage/cobertura-coverage.xml" | ||
|
|
@@ -62,7 +63,7 @@ jobs: | |
| output: "both" | ||
|
|
||
| - name: Upload Code Coverage Report | ||
| if: always() | ||
| if: steps.unit-tests.conclusion != 'skipped' | ||
|
||
| run: | | ||
| echo "# Code Coverage" >> $GITHUB_STEP_SUMMARY | ||
| if [ -f code-coverage-results.md ]; then | ||
|
|
@@ -83,6 +84,7 @@ jobs: | |
| e2e: | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request' | ||
|
||
| strategy: | ||
| matrix: | ||
| browser: [chrome, firefox, edge] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed from "Upload Test Results Report" to "Upload Test Result Report" (Results → Result). This makes the naming inconsistent with the test reporter action's
nameparameter which is "Test Results" (line 51) and thereport-titlewhich is also "Test Results" (line 54).