Skip to content

Commit

Permalink
ci: Split workflows
Browse files Browse the repository at this point in the history
Cover workflow fails for the same reason as this PR is attempting to
resolve. Splitting them in the same manner.
  • Loading branch information
techman83 committed Mar 30, 2024
1 parent da4227f commit 6aed45b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test-cover.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Report Cover Build'

on:
workflow_run:
workflows: ["Get Cover Build"]
types:
- completed

permissions:
actions: read
contents: read
pull-requests: write

jobs:
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
thresholdNew: 0.8
thresholdModified: 0.0
coverageFile: coverage.xml
10 changes: 0 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,3 @@ jobs:
npm install
- run: |
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
thresholdNew: 0.8
thresholdModified: 0.0
coverageFile: coverage.xml

0 comments on commit 6aed45b

Please sign in to comment.