Skip to content

Commit

Permalink
fix(release): combine lint and check jobs (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
scheying committed Dec 22, 2023
1 parent 80289d9 commit 20fdbee
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 42 deletions.
38 changes: 37 additions & 1 deletion .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint Commit Messages
name: ci
on: [pull_request]

# TODO: we clould run other checks as well (e.g. tf linting, docs creation etc.), maybe even via pre-commit
Expand All @@ -8,3 +8,39 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: wagoid/commitlint-github-action@v5

tests:
runs-on: zon-ubuntu-general-dind
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
gcr_auth: true
gar_docker_auth: true

- name: '[TEST] List GKE Clusters in Google Cloud'
run: gcloud container clusters list

- name: '[TEST] Create a Kubernetes ConfigMap'
run: kubectl create configmap test-runner-${{ github.run_id }}-${{ github.run_attempt }} --from-literal=foo=bar

- name: '[TEST] Read example value from Vault'
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 foo | EXAMPLE_VAULT_VALUE ;
41 changes: 0 additions & 41 deletions .github/workflows/test.yaml

This file was deleted.

0 comments on commit 20fdbee

Please sign in to comment.