Skip to content

Commit 6aed45b

Browse files
committed
ci: Split workflows
Cover workflow fails for the same reason as this PR is attempting to resolve. Splitting them in the same manner.
1 parent da4227f commit 6aed45b

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

.github/workflows/test-cover.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Report Cover Build'
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Get Cover Build"]
6+
types:
7+
- completed
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
pull-requests: write
13+
14+
jobs:
15+
test: # make sure the action works on a clean machine without building
16+
runs-on: ubuntu-latest
17+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: ./
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
thresholdNew: 0.8
24+
thresholdModified: 0.0
25+
coverageFile: coverage.xml

.github/workflows/test.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,3 @@ jobs:
1010
npm install
1111
- run: |
1212
npm run all
13-
test: # make sure the action works on a clean machine without building
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: ./
18-
with:
19-
token: ${{ secrets.GITHUB_TOKEN }}
20-
thresholdNew: 0.8
21-
thresholdModified: 0.0
22-
coverageFile: coverage.xml

0 commit comments

Comments
 (0)