File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 31
31
required : false
32
32
type : boolean
33
33
default : false
34
+ docker-compose-file :
35
+ required : false
36
+ type : string
37
+ default : docker-compose.yml
38
+ description : Path to the docker-compose file to use for testing
39
+ playwright-config :
40
+ required : false
41
+ type : string
42
+ default : playwright.config.ts
43
+ description : Path to the Playwright config file to use for testing
34
44
35
45
permissions :
36
46
contents : read
@@ -106,15 +116,15 @@ jobs:
106
116
107
117
- name : Start Grafana
108
118
run : |
109
- docker compose pull
110
- GRAFANA_VERSION=${{ matrix.GRAFANA_IMAGE.VERSION }} GRAFANA_IMAGE=${{ matrix.GRAFANA_IMAGE.NAME }} docker compose up -d
119
+ docker compose -f ${{ inputs.docker-compose-file }} pull
120
+ GRAFANA_VERSION=${{ matrix.GRAFANA_IMAGE.VERSION }} GRAFANA_IMAGE=${{ matrix.GRAFANA_IMAGE.NAME }} docker compose -f ${{ inputs.docker-compose-file }} up -d
111
121
112
122
- name : Wait for Grafana to start
113
123
uses : grafana/plugin-actions/wait-for-grafana@main
114
124
115
125
- name : Run Playwright tests
116
126
id : run-tests
117
- run : npx playwright test
127
+ run : npx playwright test --config ${{ inputs.playwright-config }}
118
128
119
129
- name : Upload artifacts
120
130
You can’t perform that action at this time.
0 commit comments