Skip to content

v0.5.0

v0.5.0 #10

Workflow file for this run

# Copyright 2024 The Cross-Media Measurement Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Release test
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-test:
name: Build and test
runs-on: ubuntu-20.04
permissions:
id-token: write
env:
CLUSTER_LOGS_PATH: cluster-logs
steps:
- name: Check out revision
uses: actions/checkout@v4
- uses: ./.github/actions/free-disk-space
# Authenticate to Google Cloud for access to remote cache.
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ vars.BAZEL_BUILD_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.BAZEL_BUILD_SERVICE_ACCOUNT }}
- name: Write ~/.bazelrc
run: |
cat << EOF > ~/.bazelrc
common --config=ci
common --config=remote-cache
EOF
- name: Get Bazel cache params
id: get-cache-params
run: |
repo_cache_path="$(bazelisk info repository_cache)"
echo "repo-cache-path=${repo_cache_path}" >> $GITHUB_OUTPUT
- name: Restore repository cache
uses: actions/cache/restore@v4
with:
path: ${{ steps.get-cache-params.outputs.repo-cache-path }}
key: ${{ vars.BAZEL_REPO_CACHE_KEY }}
- name: Run tests
id: run-tests
run: >
bazelisk test --test_output=streamed
//src/test/kotlin/org/wfanet/measurement/integration/deploy/gcloud:GCloudSpannerInProcessReachMeasurementAccuracyTest
- name: Upload Bazel testlogs
continue-on-error: true
uses: world-federation-of-advertisers/actions/bazel-upload-testlogs@v2
if: failure() && (steps.run-tests.outcome == 'failure')