update to latest kafka streams framework #1491
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: build and validate | |
on: | |
schedule: | |
- cron: 11 11 * * 3 | |
push: | |
branches: | |
- main | |
pull_request_target: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
fetch-depth: 0 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_READ_USER }} | |
password: ${{ secrets.DOCKERHUB_READ_TOKEN }} | |
- name: Build with Gradle | |
uses: hypertrace/github-actions/gradle@main | |
with: | |
args: build -x avroCompatibilityCheck dockerBuildImages | |
- name: Run Trivy vulnerability scanner for ingester | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/hypertrace-ingester | |
output-mode: github | |
category: hypertrace-ingester | |
- name: Run Trivy vulnerability scanner for span-normalizer | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/span-normalizer | |
output-mode: github | |
category: span-normalizer | |
- name: Run Trivy vulnerability scanner for raw-spans-grouper | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/raw-spans-grouper | |
output-mode: github | |
category: raw-spans-grouper | |
- name: Run Trivy vulnerability scanner for trace-enricher | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/hypertrace-trace-enricher | |
output-mode: github | |
category: hypertrace-trace-enricher | |
- name: Run Trivy vulnerability scanner for view creator | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/hypertrace-view-creator | |
output-mode: github | |
category: hypertrace-view-creator | |
- name: Run Trivy vulnerability scanner for view-generator | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/hypertrace-view-generator | |
output-mode: github | |
category: hypertrace-view-generator | |
- name: Run Trivy vulnerability scanner for metrics generator | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/hypertrace-metrics-generator | |
output-mode: github | |
category: hypertrace-metrics-generator | |
- name: Run Trivy vulnerability scanner for metrics processor | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/hypertrace-metrics-processor | |
output-mode: github | |
category: hypertrace-metrics-processor | |
- name: Run Trivy vulnerability scanner for metrics exporter | |
uses: hypertrace/github-actions/trivy-image-scan@main | |
with: | |
image: hypertrace/hypertrace-metrics-exporter | |
output-mode: github | |
category: hypertrace-metrics-exporter | |
validate-helm-charts: | |
runs-on: ubuntu-22.04 | |
container: | |
image: hypertrace/helm-gcs-packager:0.3.1 | |
credentials: | |
username: ${{ secrets.DOCKERHUB_READ_USER }} | |
password: ${{ secrets.DOCKERHUB_READ_TOKEN }} | |
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
fetch-depth: 0 | |
- name: validate charts | |
run: ./.github/workflows/helm.sh validate | |
validate-avros: | |
runs-on: ubuntu-22.04 | |
steps: | |
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
fetch-depth: 0 | |
- name: create checksum file | |
uses: hypertrace/github-actions/checksum@main | |
- name: Cache packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle | |
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }} | |
restore-keys: | | |
gradle-packages-${{ runner.os }}-${{ github.job }} | |
gradle-packages-${{ runner.os }} | |
- name: validate avros | |
uses: hypertrace/github-actions/gradle@main | |
with: | |
args: avroCompatibilityCheck |