Skip to content

Commit

Permalink
Continue tests if hackage-repo-tool is not present.
Browse files Browse the repository at this point in the history
The tool is not essential to the rest of the test suite. If
hackage-repo-tool is not present, any test that requires it will be
skipped.

We want to keep this in the loop but we don't want to fail if
hackage-repo-tool breaks or fails to support a newer GHC version.
  • Loading branch information
andreabedini committed May 5, 2022
1 parent 167ab82 commit 63e5026
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ jobs:
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
- name: Install hackage-repo-tool
# The tool is not essential to the rest of the test suite. If
# hackage-repo-tool is not present, any test that requires it will
# be skipped.
# We want to keep this in the loop but we don't want to fail if
# hackage-repo-tool breaks or fails to support a newer GHC version.
continue-on-error: true
run: |
cd $(mktemp -d)
cabal install hackage-repo-tool
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ jobs:
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
- name: Install hackage-repo-tool
# The tool is not essential to the rest of the test suite. If
# hackage-repo-tool is not present, any test that requires it will
# be skipped.
# We want to keep this in the loop but we don't want to fail if
# hackage-repo-tool breaks or fails to support a newer GHC version.
continue-on-error: true
run: |
cd $(mktemp -d)
cabal install hackage-repo-tool
Expand Down

0 comments on commit 63e5026

Please sign in to comment.