Skip to content

Commit 7a055ee

Browse files
chore(main): release 2.0.0 (#28)
🤖 I have created a release *beep* *boop* --- ## [2.0.0](v1.2.0...v2.0.0) (2025-05-30) This new release changes how the OPA test commands are executed. Previously, it was executed as a bash script within the `action.yml`. Now, it is executed programmatically with [GitHub's `@action/exec` package ](https://github.com/actions/toolkit/tree/main/packages/exec). This allows the output to be easily fed as JSON and processed. There is also a new input option of `test_mode` which allows the option to test the OPA by the entire package (directory based aka `opa test ./`) or file by file (e.g. `opa test a_test.rego a.rego`). * The end result should be the same if the OPA package is structured properly. * Previously, it was tested file by file, so if tests are failing, to maintain old behavior, use the input `test_mode = file` * If encountering any issues, please be sure to report them! ### ⚠ BREAKING CHANGES * **ts:** use @actions/exec instead of bash script for OPA commands, allow testing entire directory vs file by file ([#27](#27)) ### Bug Fixes * **ts:** coverage only if it passed ([#30](#30)) ([7e4e69c](7e4e69c)) ### Code Refactoring * **ts:** use @actions/exec instead of bash script for OPA commands, allow testing entire directory vs file by file ([#27](#27)) ([9eecaf7](9eecaf7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e5ff23e commit 7a055ee

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## [2.0.0](https://github.com/masterpointio/github-action-opa-rego-test/compare/v1.2.0...v2.0.0) (2025-05-30)
4+
5+
6+
### ⚠ BREAKING CHANGES
7+
8+
* **ts:** use @actions/exec instead of bash script for OPA commands, allow testing entire directory vs file by file ([#27](https://github.com/masterpointio/github-action-opa-rego-test/issues/27))
9+
10+
### Bug Fixes
11+
12+
* **ts:** coverage only if it passed ([#30](https://github.com/masterpointio/github-action-opa-rego-test/issues/30)) ([7e4e69c](https://github.com/masterpointio/github-action-opa-rego-test/commit/7e4e69cb57b96bc5aa401772a4fb3b7911251c77))
13+
14+
15+
### Code Refactoring
16+
17+
* **ts:** use @actions/exec instead of bash script for OPA commands, allow testing entire directory vs file by file ([#27](https://github.com/masterpointio/github-action-opa-rego-test/issues/27)) ([9eecaf7](https://github.com/masterpointio/github-action-opa-rego-test/commit/9eecaf74d47ca3976fee01bbcb5a5b724ebc2d0d))
18+
319
## [1.2.0](https://github.com/masterpointio/github-action-opa-rego-test/compare/v1.1.0...v1.2.0) (2025-04-30)
420

521

0 commit comments

Comments
 (0)