Skip to content

Add automated tests for S3 and GCS #36

Add automated tests for S3 and GCS

Add automated tests for S3 and GCS #36

Workflow file for this run

name: Continuous Integration
on:
pull_request:
push:
branches:
- main
schedule:
# Every day at 10:09 UTC.
- cron: '9 10 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
tidy_and_test_matrix:
strategy:
fail-fast: false
matrix:
runner: [macos-13, macos-15, ubuntu-22.04]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: cgrindel/gha_set_up_bazel@v1
with:
repo_name: credential-helper
- name: Execute Tests
shell: bash
run: bazelisk test //...
integration_test_matrix:
strategy:
fail-fast: false
matrix:
runner: [macos-13, macos-15, ubuntu-22.04]
runs-on: ${{ matrix.runner }}
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::381492153904:role/git-s3-access
aws-region: us-east-1
#- name: Download files from S3
# run: aws s3 cp s3://malte-s3-bazel-test /tmp/ --recursive
- uses: cgrindel/gha_set_up_bazel@v1
with:
repo_name: credential-helper
- name: Execute Integration Tests
shell: bash
run: bazelisk test //:all_integration_tests
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
all_ci_tests:
runs-on: ubuntu-22.04
needs: [tidy_and_test_matrix, integration_test_matrix]
if: ${{ always() }}
steps:
- uses: cgrindel/gha_join_jobs@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}