mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
Merge pull request #67 from brendan-ch/chore/test-coverage-artifacts
chore/test-coverage-artifacts
This commit is contained in:
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@@ -1,8 +1,6 @@
|
|||||||
name: Node.js Test
|
name: Node.js Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
@@ -15,3 +13,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and test with Docker Compose
|
- name: Build and test with Docker Compose
|
||||||
run: docker compose run test
|
run: docker compose run test
|
||||||
|
|
||||||
|
- name: Upload test coverage
|
||||||
|
id: coverage-upload
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: code-coverage-report
|
||||||
|
path: coverage
|
||||||
|
|
||||||
|
- name: Post comment linking to artifact
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
run: |
|
||||||
|
gh pr comment ${{ github.event.pull_request.number }} \
|
||||||
|
--repo ${{ github.repository }} \
|
||||||
|
--body "Test coverage artifact: ${{ steps.coverage-upload.outputs.artifact-url }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user