-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added github workflow action for conftest (#127)
- Loading branch information
1 parent
8d4e833
commit c93d696
Showing
3 changed files
with
94 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Validate | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
conftest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Conftest | ||
uses: redhat-cop/github-actions/confbatstest@master |
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/usr/bin/env bats | ||
|
||
@test "basic-dotnet-core/.openshift" { | ||
run conftest test basic-dotnet-core/.openshift --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "basic-nginx/.openshift" { | ||
run conftest test basic-nginx/.openshift --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "basic-spring-boot-tekton/.openshift" { | ||
run conftest test basic-spring-boot-tekton/.openshift --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "basic-spring-boot/.openshift basic-tomcat/.openshift" { | ||
run conftest test basic-spring-boot/.openshift basic-tomcat/.openshift --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "blue-green-spring/.openshift" { | ||
run conftest test blue-green-spring/.openshift --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "cucumber-selenium-grid/applier/projects" { | ||
run conftest test cucumber-selenium-grid/applier/projects --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "cucumber-selenium-grid/applier/templates" { | ||
run conftest test cucumber-selenium-grid/applier/templates --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "jenkins-s2i multi-cluster-multi-branch-jee/.openshift" { | ||
run conftest test jenkins-s2i multi-cluster-multi-branch-jee/.openshift --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "multi-cluster-spring-boot/image-mirror-example/.applier/projects" { | ||
run conftest test multi-cluster-spring-boot/image-mirror-example/.applier/projects --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "multi-cluster-spring-boot/image-mirror-example/.applier/templates" { | ||
run conftest test multi-cluster-spring-boot/image-mirror-example/.applier/templates --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "multi-cluster-spring-boot/skopeo-example/.applier/projects" { | ||
run conftest test multi-cluster-spring-boot/skopeo-example/.applier/projects --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "multi-cluster-spring-boot/skopeo-example/.applier/templates" { | ||
run conftest test multi-cluster-spring-boot/skopeo-example/.applier/templates --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "secure-spring-boot/.openshift-applier/templates" { | ||
run conftest test secure-spring-boot/.openshift-applier/templates --output tap | ||
|
||
[ "$status" -eq 0 ] | ||
} |
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