Repository navigation
feat: add Amazon Data Firehose + S3 telemetry mirror #8
This file contains hidden or 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: AWS Telemetry Validation | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "ingestion-service/**" | |
| - "terraform/**" | |
| - ".github/workflows/aws-telemetry.yml" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "ingestion-service/**" | |
| - "terraform/**" | |
| - ".github/workflows/aws-telemetry.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| firehose-producer: | |
| name: Firehose producer unit tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| defaults: | |
| run: | |
| working-directory: ingestion-service | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24.x" | |
| cache-dependency-path: ingestion-service/go.sum | |
| - name: Verify module files are tidy | |
| run: | | |
| go mod tidy | |
| git diff --exit-code -- go.mod go.sum | |
| - name: Run ingestion tests | |
| run: go test ./... | |
| terraform: | |
| name: Terraform fmt and validate | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| defaults: | |
| run: | |
| working-directory: terraform | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "1.13.3" | |
| - name: Verify Terraform formatting | |
| run: | | |
| terraform fmt -recursive | |
| git diff --exit-code -- . | |
| - name: Initialize providers without backend | |
| run: terraform init -backend=false -input=false | |
| - name: Validate configuration | |
| run: terraform validate |