fix: preserve job result state in case of failure (#1519)
* fix: preserve job result state in case of failure There is just one job field for the job result. This is also true for matrix jobs. We need to preserve the failure state of a job to have the whole job failing in case of one permuation of the matrix failed. Closes #1518 * test: remove continue-on-error on job level This feature is not yet supported by act and if implemented would make this test invalid Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
16
pkg/runner/testdata/matrix-exitcode/push.yml
vendored
Normal file
16
pkg/runner/testdata/matrix-exitcode/push.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: test
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
val: ["success", "failure"]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: test
|
||||
run: |
|
||||
echo "Expected job result: ${{ matrix.val }}"
|
||||
[[ "${{ matrix.val }}" = "success" ]] || exit 1
|
Reference in New Issue
Block a user