Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add the possibility to skip a failed test from a matrix #28

Open
alber70g opened this issue Mar 4, 2024 · 2 comments
Open

Feat: add the possibility to skip a failed test from a matrix #28

alber70g opened this issue Mar 4, 2024 · 2 comments

Comments

@alber70g
Copy link

alber70g commented Mar 4, 2024

Imagine this

  end-to-end-tests:
    name: E2E - ${{ matrix.app }}
    needs: build
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        app: ['tools', 'docs', 'app']

and the ci-gate

  ci-gate:
    if: always()
    needs:
      - build
      - integration-tests
      - end-to-end-tests
    runs-on: Ubuntu-latest
    steps:
      - name: Check required jobs.
        uses: re-actors/alls-green@release/v1
        with:
          jobs: ${{ toJSON(needs) }}

I'd like to be able to "allow-failed" the app part of end-to-end-tests. Is that possible?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@webknjaz
Copy link
Member

webknjaz commented Mar 4, 2024

You'll have to do this on the matrix definition level. It is technically impossible for this action to have visibility into how your jobs are set up.

@webknjaz
Copy link
Member

webknjaz commented Mar 4, 2024

I think there's an example of a "continue on fail" somewhere in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants