Skip to content

Commit

Permalink
Add end-to-end tests (#323)
Browse files Browse the repository at this point in the history
This first end-to-end test runs on every pull request, invoking the
label checker's `one_of` functionality.  [End-to-end testing][1] gives
us greater coverage than the integration tests, as it runs the full
label checker. We will add further end-to-end tests later too, to expand
the coverage.

[1]: https://circleci.com/blog/what-is-end-to-end-testing/
  • Loading branch information
johnboyes committed Dec 31, 2022
1 parent ace97e6 commit 8ab47f1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/end_to_end_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: End-to-end tests
on: # yamllint disable-line rule:truthy
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled

jobs:

check_semver_label:
name: end-to-end test one_of
runs-on: ubuntu-latest
# Run the workflow using the label checker code in the branch for the current PR
steps:
- uses: actions/checkout@v3
- uses: ./
with:
one_of: major,minor,patch
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8ab47f1

Please sign in to comment.