Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(deps): Restructure into checks/ #41

Merged
merged 7 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/actions/setup-opa/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ description: Setup OPA CLI
runs:
using: composite
steps:
- name: Setup OPA
- name: Setup OPA v0.58.0
shell: bash
run: |
curl --retry 3 -L -o opa_linux_amd64_static https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_amd64_static
curl -L -o checksum https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_amd64_static.sha256
curl --retry 3 -L -o opa_linux_amd64_static https://github.com/open-policy-agent/opa/releases/download/v0.58.0/opa_linux_amd64_static
curl -L -o checksum https://github.com/open-policy-agent/opa/releases/download/v0.58.0/opa_linux_amd64_static.sha256
sha256sum -c checksum
chmod 755 ./opa_linux_amd64_static
sudo mv ./opa_linux_amd64_static /usr/local/bin/opa
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Creat bundle
- name: Create bundle
run: make bundle
- name: Login to GitHub Packages Container registry
uses: docker/login-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
merge_group:
env:
GO_VERSION: "1.18"
GO_VERSION: "1.21"
jobs:
opa-tests:
name: OPA tests
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test-rego.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- "LICENSE"
merge_group:
env:
GO_VERSION: "1.18"
GO_VERSION: "1.21"
jobs:
opa-tests:
name: OPA tests
Expand All @@ -34,6 +34,4 @@ jobs:
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: OPA Test
run: make test-rego
cache-dependency-path: go.sum
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ rego: fmt-rego test-rego
fmt-rego:
opa fmt -w rules/

.PHONY: test-rego
test-rego:
go test --run Test_AllRegoRules ./test

.PHONY: bundle
bundle:
./scripts/bundle.sh
Expand Down
File renamed without changes.
Loading