Skip to content

Commit

Permalink
add some tests files for the path acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Dec 29, 2023
1 parent d8dfafc commit 6c5a67c
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,19 @@ jobs:
- name: valid file creation
run: echo "{}" > valid.yaml

- uses: ./
- name: acceptance test
uses: ./
id: json-yaml-validate
with:
comment: "true"
exclude_file: .github/config/exclude.txt

- name: acceptance test - files input option (glob)
uses: ./
id: json-yaml-validate-glob-test
with:
comment: "true"
exclude_file: .github/config/exclude.txt
files: |
__tests__/**/test1.yml
__tests__/**/test*.json
5 changes: 5 additions & 0 deletions __tests__/acceptance/dev/test2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"food": "apple",
"tasty": true,
"eaten": 1492
}
9 changes: 9 additions & 0 deletions __tests__/acceptance/prod/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
code:
app:
name: coolapp
cpu: 2
secured: true
gpus:
- gpu1
- gpu2
5 changes: 5 additions & 0 deletions __tests__/acceptance/prod/test1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"food": "lime",
"tasty": false,
"eaten": 1
}
9 changes: 9 additions & 0 deletions __tests__/acceptance/prod/test1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
person:
name:
first_name: monalisa
age: 2000
employeed: true
hobbies:
- tennis
- football
3 changes: 3 additions & 0 deletions __tests__/acceptance/staging/code.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"language": "ruby-latest"
}
9 changes: 9 additions & 0 deletions __tests__/acceptance/staging/test1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
person:
name:
first_name: lisamona
age: 5000
employeed: false
hobbies:
- golf
- skiing

0 comments on commit 6c5a67c

Please sign in to comment.