@@ -109,6 +109,41 @@ jobs:
109109 ARK_USERNAME : ${{ secrets.ARK_USERNAME }}
110110 ARK_SECRET : ${{ secrets.ARK_SECRET }}
111111
112+ ngts-test-e2e :
113+ # TEMPORARY: require an explicit label to test NGTS until we have a stable test environment
114+ if : contains(github.event.pull_request.labels.*.name, 'test-ngts')
115+ runs-on : ubuntu-latest
116+ steps :
117+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
118+ # Adding `fetch-depth: 0` makes sure tags are also fetched. We need
119+ # the tags so `git describe` returns a valid version.
120+ # see https://github.com/actions/checkout/issues/701 for extra info about this option
121+ with : { fetch-depth: 0 }
122+
123+ - uses : ./.github/actions/repo_access
124+ with :
125+ DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB : ${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }}
126+
127+ - id : go-version
128+ run : |
129+ make print-go-version >> "$GITHUB_OUTPUT"
130+
131+ - uses : actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
132+ with :
133+ go-version : ${{ steps.go-version.outputs.result }}
134+
135+ - uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
136+ with :
137+ path : _bin/downloaded
138+ key : downloaded-${{ runner.os }}-${{ hashFiles('klone.yaml') }}-test-unit
139+
140+ - run : make -j ngts-test-e2e
141+ env :
142+ OCI_BASE : ${{ secrets.NGTS_OCI_BASE }}
143+ NGTS_CLIENT_ID : ${{ secrets.NGTS_CLIENT_ID }}
144+ NGTS_PRIVATE_KEY : ${{ secrets.NGTS_PRIVATE_KEY }}
145+ NGTS_TSG_ID : ${{ secrets.NGTS_TSG_ID }}
146+
112147 test-e2e :
113148 if : contains(github.event.pull_request.labels.*.name, 'test-e2e')
114149 runs-on : ubuntu-latest
@@ -149,7 +184,7 @@ jobs:
149184 id : timestamp # Give the step an ID to reference its output
150185 run : |
151186 # Generate a timestamp in the format YYMMDD-HHMMSS.
152- # Extracting from PR name would require sanitization due to GKE cluster naming constraints
187+ # Extracting from PR name would require sanitization due to GKE cluster naming constraints
153188 TIMESTAMP=$(date +'%y%m%d-%H%M%S')
154189 CLUSTER_NAME="test-secretless-${TIMESTAMP}"
155190 echo "Generated cluster name: ${CLUSTER_NAME}"
0 commit comments