-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/update-stripe
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
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 |
---|---|---|
|
@@ -130,23 +130,30 @@ jobs: | |
- run: openssl genrsa -out ./config/jwt.key 2048 && chmod 0777 ./config/jwt.key | ||
- run: npm run swagger:validate | ||
- run: npm run coverage-ci # Separate command to limit the number of workers to prevent timeouts | ||
- name: "Post Migration test-suite" | ||
if: ${{ matrix.typeorm-connection == 'mariadb' }} | ||
run: npm run test-ci-migrate | ||
- run: git config --global --add safe.directory $GITHUB_WORKSPACE # To avoid dubious ownership | ||
if: ${{ matrix.typeorm-connection == 'mariadb' }} | ||
|
||
- name: "Cannot commit code coverage cross-fork" | ||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork && matrix.typeorm-connection == 'mariadb' | ||
run: | | ||
echo "::warning Cannot comment code coverage cross-fork" | ||
- name: "Fetch target branch coverage from artifacts" | ||
id: fetch-coverage-base | ||
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork && matrix.typeorm-connection == 'mariadb' | ||
uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
workflow: build.yml | ||
workflow_conclusion: success | ||
name: coverage | ||
branch: ${{ github.base_ref }} | ||
path: reports/coverage-base | ||
- name: "Comment code coverage on PR" | ||
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork && matrix.typeorm-connection == 'mariadb' | ||
uses: sidx1024/[email protected].6 | ||
uses: sidx1024/[email protected].7 | ||
with: | ||
comment_template_file: .github/coverage-template.md | ||
coverage_file: reports/coverage/coverage-summary.json | ||
base_coverage_file: '' | ||
base_coverage_file: reports/coverage-base/coverage-summary.json | ||
sources_base_path: "/__w/sudosos-backend/sudosos-backend" #github.action_path does not work in Docker (https://github.com/actions/runner/issues/716) | ||
- name: "Upload code coverage report" | ||
if: ${{ matrix.typeorm-connection == 'mariadb' }} | ||
|