Skip to content

Commit

Permalink
try job level continue-on-error
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Sep 20, 2023
1 parent 1b1693b commit f6f4c03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ jobs:

job_gocoverage_textfmt:
name: Convert coverage (bin->txt)
continue-on-error: true # the merge might fail if unit ran with a different covermode than integration
needs: [job_go_test, job_compose_test]
runs-on: ubuntu-latest
steps:
Expand All @@ -166,7 +167,6 @@ jobs:
go-version: '1.20'
cache: false
- name: Convert gocoverage format
continue-on-error: true # the merge might fail if unit ran with a different covermode than integration
run: |
go tool covdata textfmt -i=gocoverage-unit@${{ env.SHA }}/ \
-o gocoverage-unit@${{ env.SHA }}.txt
Expand All @@ -184,6 +184,7 @@ jobs:
name: Publish coverage (Coveralls)
runs-on: ubuntu-latest
needs: [job_gocoverage_textfmt]
continue-on-error: true # this whole job is just sugar for visualizing coverage
steps:
- uses: actions/checkout@v3
- uses: benjlevesque/[email protected] # sets env.SHA to the first 7 chars of github.sha
Expand Down Expand Up @@ -212,6 +213,7 @@ jobs:
name: Publish coverage (DeepSource)
runs-on: ubuntu-latest
needs: [job_gocoverage_textfmt]
continue-on-error: true # this whole job is just sugar for visualizing coverage
steps:
- uses: actions/checkout@v3
- uses: benjlevesque/[email protected] # sets env.SHA to the first 7 chars of github.sha
Expand Down

0 comments on commit f6f4c03

Please sign in to comment.