Skip to content

Commit

Permalink
Skip integration tests on forks (#295)
Browse files Browse the repository at this point in the history
The build on forks was failing because the GitHub Action which runs the
integration tests requires a GitHub token with access to an agilepathway
repo, and forks rightly don't have access.  So this commit [excludes
forks from running this GitHub Action][1] (they don't need to run it,
as the additional confidence from it is just a nice to have, as we also
have the tests which run using mocks and which do run fine on forks).

This ideally would have been part of #294 or indeed #274, but was
missed.

[1]: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-run-job-for-specific-repository
  • Loading branch information
johnboyes authored Jul 18, 2022
1 parent e5ab068 commit f26cee6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
tests:
name: Integration
runs-on: ubuntu-20.04
# Skip running on forks since forks don't have access to the agilepathway repo used
# in the integration tests
if: github.repository == 'agilepathway/label-checker'
steps:
- name: Install Go
uses: actions/[email protected]
Expand Down

0 comments on commit f26cee6

Please sign in to comment.