Skip to content

Commit a7d9e5c

Browse files
fix(ci): run tests for pull requests
1 parent 2267caa commit a7d9e5c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: test & export coverage report
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
workflow_dispatch:
3+
on: [push, pull_request, workflow_dispatch]
84

95
permissions:
106
contents: read
@@ -35,5 +31,6 @@ jobs:
3531
with:
3632
path: coverage
3733
- name: Deploy to GitHub Pages
34+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
3835
id: deployment
3936
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)