File tree Expand file tree Collapse file tree 4 files changed +21
-28
lines changed Expand file tree Collapse file tree 4 files changed +21
-28
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,15 @@ jobs:
22
22
with :
23
23
cli_version : " latest"
24
24
25
- - name : Test apply resources
26
- uses : ./actions/apply_resources
25
+ - name : Login to the API server
26
+ uses : ./actions/login
27
27
with :
28
28
url : https://demo.perses.dev
29
- file : ./testdata/resources_folder/dashboard.json
30
29
username : test
31
30
password : test
32
31
32
+ - name : Test apply resources
33
+ uses : ./actions/apply_resources
34
+ with :
35
+ file : ./testdata/resources_folder/dashboard.json
36
+
Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ jobs:
22
22
with :
23
23
cli_version : " latest"
24
24
25
- - name : Test dashboard diff
26
- uses : ./actions/diff_dashboards
25
+ - name : Login to the API server
26
+ uses : ./actions/login
27
27
with :
28
28
url : https://demo.perses.dev
29
- directory : ./testdata/resources_folder
30
29
username : test
31
30
password : test
32
31
32
+ - name : Test dashboard diff
33
+ uses : ./actions/diff_dashboards
34
+ with :
35
+ directory : ./testdata/resources_folder
Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ jobs:
22
22
with :
23
23
cli_version : " latest"
24
24
25
- - name : Test dashboard preview
26
- uses : ./actions/preview_dashboards
25
+ - name : Login to the API server
26
+ uses : ./actions/login
27
27
with :
28
28
url : https://demo.perses.dev
29
- file : ./testdata/resources_folder/dashboard.json
30
29
username : test
31
30
password : test
32
31
32
+ - name : Test dashboard preview
33
+ uses : ./actions/preview_dashboards
34
+ with :
35
+ file : ./testdata/resources_folder/dashboard.json
Original file line number Diff line number Diff line change @@ -28,29 +28,12 @@ jobs:
28
28
enable_go : true
29
29
enable_cue : true
30
30
31
- - name : Test resources validation with directory
31
+ - name : Test resources validation
32
32
uses : ./actions/validate_resources
33
33
with :
34
34
directory : ./testdata/resources_folder
35
35
36
36
- name : Test resources validation with file
37
37
uses : ./actions/validate_resources
38
38
with :
39
- file : ./testdata/resource.json
40
-
41
- - name : Test resources validation with both inputs (should fail)
42
- id : test_fail
43
- uses : ./actions/validate_resources
44
- with :
45
- directory : ./testdata/resources_folder
46
- file : ./testdata/resource.json
47
- continue-on-error : true
48
-
49
- - name : Validate failure for both inputs
50
- run : |
51
- if [ "${{ steps.test_fail.outcome }}" != "failure" ]; then
52
- echo "Error: Action did not fail as expected when both inputs were provided."
53
- exit 1
54
- else
55
- echo "Success: Action failed as expected."
56
- fi
39
+ file : ./testdata/resource.json
You can’t perform that action at this time.
0 commit comments