Skip to content

feat: add test step #37

feat: add test step

feat: add test step #37

Workflow file for this run

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_number }} --from-literal=foo=bar
- name: '[TEST] Vault read'
uses: hashicorp/vault-action@v2
with:
url: steps.baseproject.outputs.vault_url
secrets: |
sys/auth token | AWS_ACCESS_KEY_ID ;