Commit 7a055ee
authored
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
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
3 | 19 | | |
4 | 20 | | |
5 | 21 | | |
| |||
0 commit comments