Skip to content

Commit

Permalink
workflows: update to run unit tests in GitHub Actions job
Browse files Browse the repository at this point in the history
Epic: CRDB-8308
Release note: None
  • Loading branch information
rickystewart committed Dec 7, 2023
1 parent eb4a916 commit 9452d4b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/experimental-github-actions-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,13 @@ jobs:
test_job:
runs-on: [self-hosted, basic_runner_group]
steps:
- run: echo hi
- uses: actions/checkout@v4
with:
# By default, checkout merges the PR into the current master.
# Instead, we want to check out the PR as is.
ref: ${{ github.event.pull_request.head.sha }}
- run: ./build/github/get-engflow-keys.sh
- run: bazel test //pkg:all_tests --config engflowpublic --config crosslinux --jobs 300 --tls_client_certificate=/home/agent/engflow.crt --tls_client_key=/home/agent/engflow.key --remote_download_minimal
- name: clean up
if: always()
run: rm -f /home/agent/engflow.*
6 changes: 6 additions & 0 deletions build/github/get-engflow-keys.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -euxo pipefail

gcloud secrets versions access 1 --secret=engflow-mesolite-key > /home/agent/engflow.key
gcloud secrets versions access 1 --secret=engflow-mesolite-crt > /home/agent/engflow.crt

0 comments on commit 9452d4b

Please sign in to comment.