Skip to content

Commit badef0f

Browse files
KoblerSschiwekM
andauthored
Fix formatting inconsistencies in CI workflow file (#302)
Co-authored-by: Marten Schiwek <marten.schiwek@sap.com>
1 parent e1aba41 commit badef0f

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: CI
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ main ]
6+
branches: [main]
77
pull_request_target:
8-
branches: [ main ]
9-
types: [ reopened, synchronize, opened ]
8+
branches: [main]
9+
types: [reopened, synchronize, opened]
1010

1111
jobs:
1212
requires-approval:
@@ -26,7 +26,9 @@ jobs:
2626
matrix:
2727
node-version: [20.x, 22.x]
2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v5
30+
with:
31+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3032
- name: Use Node.js ${{ matrix.node-version }}
3133
uses: actions/setup-node@v2
3234
with:
@@ -47,16 +49,18 @@ jobs:
4749
hyperscaler: [AWS, AZURE, GCP]
4850
scanner-auth: [basic, mtls]
4951
steps:
50-
- name: Checkout repository
51-
uses: actions/checkout@v5
52-
- name: Integration tests
53-
uses: ./.github/actions/integration-tests
54-
with:
55-
CF_API: ${{ secrets[format('CF_API_{0}', matrix.hyperscaler)] }}
56-
CF_USERNAME: ${{ secrets['CF_USERNAME'] }}
57-
CF_PASSWORD: ${{ secrets['CF_PASSWORD'] }}
58-
CF_ORG: ${{ secrets[format('CF_ORG_{0}', matrix.hyperscaler)] }}
59-
CF_SPACE: ${{ secrets[format('CF_SPACE_{0}', matrix.hyperscaler)] }}
60-
OBJECT_STORE_KIND: ${{ vars[format('OBJECT_STORE_KIND_{0}', matrix.hyperscaler)] }}
61-
NODE_VERSION: ${{ matrix.node-version }}
62-
SCANNER_AUTH: ${{ matrix.scanner-auth }}
52+
- name: Checkout repository
53+
uses: actions/checkout@v5
54+
with:
55+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
56+
- name: Integration tests
57+
uses: ./.github/actions/integration-tests
58+
with:
59+
CF_API: ${{ secrets[format('CF_API_{0}', matrix.hyperscaler)] }}
60+
CF_USERNAME: ${{ secrets['CF_USERNAME'] }}
61+
CF_PASSWORD: ${{ secrets['CF_PASSWORD'] }}
62+
CF_ORG: ${{ secrets[format('CF_ORG_{0}', matrix.hyperscaler)] }}
63+
CF_SPACE: ${{ secrets[format('CF_SPACE_{0}', matrix.hyperscaler)] }}
64+
OBJECT_STORE_KIND: ${{ vars[format('OBJECT_STORE_KIND_{0}', matrix.hyperscaler)] }}
65+
NODE_VERSION: ${{ matrix.node-version }}
66+
SCANNER_AUTH: ${{ matrix.scanner-auth }}

0 commit comments

Comments
 (0)