🔄 CI | Nightly Tests #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🔄 CI | Nightly | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: "Branch to run the workflow on, e.g. main" | |
type: string | |
required: true | |
schedule: | |
# Scheduled to run in the morning (PT) on every day-of-week from Monday through Friday. | |
- cron: '0 15 * * 1-5' | |
jobs: | |
build-publish: | |
name: Build, Validate & Publish | |
strategy: | |
matrix: | |
distribution: | |
- nr-otel-collector | |
uses: ./.github/workflows/ci-base.yaml | |
with: | |
nightly: true | |
distribution: ${{ matrix.distribution }} | |
test_cluster_name: 'ci-e2etest-nightly' | |
secrets: | |
docker_hub_username: ${{ secrets.OTELCOMM_DOCKER_HUB_USERNAME }} | |
docker_hub_password: ${{ secrets.OTELCOMM_DOCKER_HUB_PASSWORD }} | |
gpg_private_key: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} | |
gpg_passphrase: ${{ secrets.OHAI_GPG_PASSPHRASE }} | |
registry: '${{ secrets.OTELCOMM_AWS_TEST_ACC_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com' | |
nr_backend_url: ${{ secrets.NR_STAGING_BACKEND_URL }} | |
nr_ingest_key: ${{ secrets.OTELCOMM_NR_INGEST_KEY }} | |
nr_account_id: ${{ secrets.OTELCOMM_NR_TEST_ACCOUNT_ID }} | |
nr_api_base_url: ${{ secrets.NR_STAGING_API_BASE_URL }} | |
nr_api_key: ${{ secrets.OTELCOMM_NR_API_KEY }} | |
test-nightly: | |
runs-on: ubuntu-latest | |
needs: build-publish | |
strategy: | |
matrix: | |
distribution: | |
- nr-otel-collector | |
steps: | |
- name: Run nightly tests for ${{ matrix.distribution }} | |
run: | | |
NR_API_KEY=${{ secrets.OTELCOMM_NR_API_KEY }} \ | |
NR_ACCOUNT_ID=${{ secrets.OTELCOMM_NR_TEST_ACCOUNT_ID }} \ | |
NR_API_BASE_URL=${{ secrets.NR_STAGING_API_BASE_URL }} \ | |
DISTRO=${{ matrix.distribution }} \ | |
make -f ./test/e2e/Makefile ci_test-nightly |