Skip to content

[CCXDEV-14564] DVO writer write heartbeats #772

[CCXDEV-14564] DVO writer write heartbeats

[CCXDEV-14564] DVO writer write heartbeats #772

Workflow file for this run

name: BDD tests
on:
pull_request:
jobs:
bdd:
runs-on: ubuntu-20.04
strategy:
matrix:
go-version:
- "1.20"
name: BDD for Go ${{ matrix.go-version}}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build project
run: make build
- name: Retrieve Docker compose file
run: wget -O docker-compose.yml https://raw.githubusercontent.com/RedHatInsights/insights-behavioral-spec/main/docker-compose.yml
- name: Retrieve BDD runner
run: wget -O bdd_runner.sh https://raw.githubusercontent.com/RedHatInsights/insights-behavioral-spec/main/run_in_docker.sh && chmod +x bdd_runner.sh
- name: Run BDD
run: ./bdd_runner.sh aggregator-tests .
- name: Set container ID as env
if: always()
run: echo "BDD_CONTAINER=$(docker ps | grep 'insights-behavioral-spec:latest' | cut -d ' ' -f 1)" >> $GITHUB_ENV
- name: Debug
if: always()
run: docker exec -u root "$BDD_CONTAINER" /bin/bash -c "ls -R /insights-behavioral-spec/logs"
- name: Copy logs from container to host
if: always()
run: docker cp "$BDD_CONTAINER:/insights-behavioral-spec/logs" .
- name: Rename logs
if: always()
# Otherwise the upload-artifact action will complain
run: for filename in logs/insights-results-aggregator/*; do mv -n "$filename" "$(echo "$filename" | sed -e 's/["><:]//g')"; done
- name: Store service logs
if: always()
uses: actions/upload-artifact@v3
with:
name: store-logs
path: |
logs/insights-results-aggregator