Skip to content

Commit ab69f9a

Browse files
committed
fix runs-on etc
1 parent fce27a9 commit ab69f9a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ on:
88
jobs:
99

1010
pr-test:
11+
if: ${{ github.event_name == 'pull_request_target' }}
12+
runs-on: ubuntu-latest
13+
environment: e2e # request confirmation
1114
steps:
12-
- if: ${{ github.event_name == 'pull_request_target' }}
13-
environment: e2e # request confirmation
14-
uses: ./.github/workflows/run-tests.yml
15+
- uses: ./.github/workflows/run-tests.yml
1516
with:
1617
inputs:
1718
event_name: ${{ github.event_name }}
@@ -24,9 +25,10 @@ jobs:
2425
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2526

2627
main-test:
28+
if: ${{ github.event_name == 'push' }}
29+
runs-on: ubuntu-latest
2730
steps:
28-
- if: ${{ github.event_name == 'push' }}
29-
uses: ./.github/workflows/run-tests.yml
31+
- uses: ./.github/workflows/run-tests.yml
3032
with:
3133
inputs:
3234
event_name: ${{ github.event_name }}

0 commit comments

Comments
 (0)