Skip to content

Commit

Permalink
ci: allow manual dispatch for coverage job
Browse files Browse the repository at this point in the history
Signed-off-by: Mason Hu <[email protected]>
  • Loading branch information
mas-who committed Apr 4, 2024
1 parent 67ea93b commit a2c2bc7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Test coverage
on:
workflow_dispatch:
push:
branches:
- main
Expand Down Expand Up @@ -64,7 +65,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install Playwright Browser
run: npx playwright install --with-deps chromium
Expand All @@ -79,9 +80,17 @@ jobs:
DOTRUN_CONTAINER_ID=$(docker ps | awk '{print $1}' | tail -n1)
docker stop $DOTRUN_CONTAINER_ID
- name: Show contents in workspace
run: |
ls ${{ github.workspace }}
find .
- name: Show contents in coverage directory
run: ls coverage/playwright-report

- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: lxd-coverage
path: coverage/playwright-report
Expand Down

0 comments on commit a2c2bc7

Please sign in to comment.