Skip to content

Commit

Permalink
fix clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
xiwenc committed Sep 8, 2024
1 parent c1572d8 commit 50ac4d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
go-version: 1.22

- name: Build
run: go build -o bin/mendix-cli "./cmd/mendix-cli"
run: go build -o bin/mxlint-cli "./cmd/mxlint-cli"

- name: Test
run: go test -v ./...

- name: Test subcommand export-model
run: |
bin/mendix-cli export-model --mode advanced -i resources/app
bin/mxlint-cli export-model --mode advanced -i resources/app
git diff --exit-code modelsource
- name: Test subcommand lint
run: ./bin/mendix-cli lint --xunit-report report.xml
run: ./bin/mxlint-cli lint --xunit-report report.xml --policies ./resources/policies

- name: Process xunit-report
uses: dorny/test-reporter@v1
Expand Down
2 changes: 1 addition & 1 deletion lint/lint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestLintSingle(t *testing.T) {
// }
// })
t.Run("single policy passes", func(t *testing.T) {
policy, _ := parsePolicyMetadata("./../resources/001_0003_security_checks.rego")
policy, _ := parsePolicyMetadata("./../resources/policies/001_0003_security_checks.rego")
result, err := evalTestsuite(*policy, "./../modelsource")

if err != nil {
Expand Down
File renamed without changes.

0 comments on commit 50ac4d0

Please sign in to comment.