-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Run BATS test in pipeline (#403)
secureli-128 Running BATS to validate e2e tests on every PR push. They seem to run pretty quickly so it shouldn't add much latency to the pipeline. ## Changes * BATS tests now run in the pipeline and print out verbose results (This work was done by @joe-stafford ) * Enabling `ci:` as a valid PR prefix, as it's supported by [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary). ## Testing * Fixed existing BATS tests & enabled them in the pipeline ## Clean Code Checklist <!-- This is here to support you. Some/most checkboxes may not apply to your change --> - [x] Meets acceptance criteria for issue - [ ] New logic is covered with automated tests - [ ] Appropriate exception handling added - [ ] Thoughtful logging included - [ ] Documentation is updated - [ ] Follow-up work is documented in TODOs - [ ] TODOs have a ticket associated with them - [x] No commented-out code included <!-- Github-flavored markdown reference: https://docs.github.com/en/get-started/writing-on-github --> --------- Co-authored-by: Joey Stafford <[email protected]>
- Loading branch information
1 parent
69d7346
commit 05deb62
Showing
4 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,11 +59,17 @@ jobs: | |
pip install poetry | ||
poetry install | ||
- name: Install BATS for e2e tests | ||
uses: bats-core/[email protected] | ||
|
||
- name: Run Tests | ||
env: | ||
BATS_LIBS_ROOT: /usr/lib | ||
run: | | ||
poetry run poe precommit | ||
poetry run poe coverage | ||
poetry run secureli build | ||
poetry run poe e2e | ||
secureli-release-noop: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,5 @@ jobs: | |
- uses: morrisoncole/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
title-regex: "(chore|style|test|feat|fix|docs): .+" | ||
title-regex: "(chore|style|test|feat|fix|docs|ci): .+" | ||
on-failed-regex-fail-action: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters