This repository was archived by the owner on Jan 27, 2023. It is now read-only.
File tree 2 files changed +33
-18
lines changed
2 files changed +33
-18
lines changed Original file line number Diff line number Diff line change 9
9
BRANCH_NAME : main
10
10
11
11
jobs :
12
- test-local-folder :
13
- runs-on : ubuntu-latest
14
- steps :
15
- - uses : actions/checkout@v3
16
-
17
- # Doing this here to simulate already having the test suite within the repo
18
- - name : Checkout repo locally
19
- uses : actions/checkout@v3
20
- with :
21
- repository : liatrio/gatling-maven-showcase
22
- ref : ${{ env.BRANCH_NAME }}
23
- path : ./test
24
-
25
- - name : Run Gatling Test Suite from local folder
26
- uses : ./
12
+ # test-local-folder:
13
+ # runs-on: ubuntu-latest
14
+ # steps:
15
+ # - uses: actions/checkout@v3
16
+
17
+ # # Doing this here to simulate already having the test suite within the repo
18
+ # - name: Checkout repo locally
19
+ # uses: actions/checkout@v3
20
+ # with:
21
+ # repository: liatrio/gatling-maven-showcase
22
+ # ref: ${{ env.BRANCH_NAME }}
23
+ # path: ./test
24
+
25
+ # - name: Run Gatling Test Suite from local folder
26
+ # uses: ./
27
27
28
28
test-with-repo :
29
29
runs-on : ubuntu-latest
30
30
steps :
31
31
- uses : actions/checkout@v3
32
-
32
+
33
33
- name : Run Gatling Test Suite from repository
34
34
uses : ./
35
35
with :
47
47
repoName : liatrio/gatling-maven-showcase
48
48
repoRef : ${{ env.BRANCH_NAME }}
49
49
simulationClass : " simulations.GoogleStressSimulation"
50
+
51
+ testing-remote-action :
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - uses : liatrio/run-gatling@main
55
+ with :
56
+ repoName : liatrio/gatling-maven-showcase
57
+ repoRef : ${{ env.BRANCH_NAME }}
58
+ simulationClass : " simulations.GoogleStressSimulation"
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ inputs:
11
11
required : true
12
12
testPath :
13
13
description : " Path to the Gatling Test Suite"
14
- default : " ./ test"
14
+ default : " test"
15
15
required : true
16
16
repoName :
17
17
description : " Name of the repository to checkout ('org/repo')"
@@ -26,6 +26,9 @@ inputs:
26
26
runs :
27
27
using : " composite"
28
28
steps :
29
+ - name : Checkout action code
30
+ uses : actions/checkout@v3
31
+
29
32
- name : Checkout Test Suite if not local
30
33
if : ${{ !hashFiles(inputs.testPath) }}
31
34
uses : actions/checkout@v3
40
43
distribution : ${{ inputs.javaDistribution }}
41
44
java-version : ${{ inputs.javaVersion }}
42
45
43
- - run : mvn -f ${{ inputs.testPath }} gatling:test ${{ inputs.simulationClass != '' && '-Dgatling.simulationClass=' || '' }}${{ inputs.simulationClass }}
46
+ - run : |
47
+ ls -l $GITHUB_WORKSPACE/
48
+ ls -l $GITHUB_WORKSPACE/test
49
+ mvn -f $GITHUB_WORKSPACE/${{ inputs.testPath }} gatling:test ${{ inputs.simulationClass != '' && '-Dgatling.simulationClass=' || '' }}${{ inputs.simulationClass }}
44
50
shell: bash
45
51
46
52
- name : Generate Job Summary
You can’t perform that action at this time.
0 commit comments