Add custom k8s_attrs_v1 scenario #147
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: Elastic Integration Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - '.github/README.md' | |
| permissions: | |
| contents: read | |
| jobs: | |
| run-tests: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Free up disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL | |
| sudo docker image prune --all --force | |
| sudo docker builder prune -a | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Compose | |
| uses: docker/setup-compose-action@v1 | |
| with: | |
| version: latest | |
| - name: Build images from source | |
| run: | | |
| IMAGE_NAME=otel-demo-integration-tests DEMO_VERSION=test docker compose --env-file .env --env-file .env.override build --parallel | |
| - name: Create k8s Kind Cluster | |
| uses: helm/kind-action@v1 | |
| - name: Set up helm | |
| uses: azure/setup-helm@v4.3.0 | |
| - name: Install bashunit | |
| run: | | |
| curl -sSL https://bashunit.com/install.sh | bash -s bin | |
| - name: Run the tests | |
| run: | | |
| ./bin/bashunit --env .env.bashunit |