-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 1.01 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Tests
on: pull_request
jobs:
test:
name: Run Tests
runs-on: [self-hosted,linux]
permissions:
id-token: write
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Call baseproject GHA
id: baseproject
uses: ./
with:
project_name: github-actions-baseproject-tests
gke_auth: true
vault_export_token: true
- name: '[TEST] List GKE Clusters'
run: gcloud container clusters list
- name: '[TEST] Create ConfigMap'
run: kubectl create configmap test-runner-${{ github.run_id }}-${{ github.run_attempt }} --from-literal=foo=bar
- name: '[TEST] Vault read'
uses: hashicorp/vault-action@v2
with:
url: ${{ steps.baseproject.outputs.vault_addr }}
token: ${{ steps.baseproject.outputs.vault_token }}
role: ${{ steps.baseproject.outputs.gha_vault_role }}
secrets: |
zon/v1/github-actions-baseproject-tests example | EXAMPLE_VAULT_VALUE ;