removed slave volume bind mount for node_exporter service #83
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: "e2e" | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
tags: | |
- "v*" | |
pull_request: | |
branches: ["main"] | |
env: | |
DOCKER_REGISTRY: ghcr.io/trifork/ | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.PACKAGE_PAT }} # we need this, as GITHUB_TOKEN only have permission to its own repo | |
# OpenSearch is required for integration tests | |
#- name: docker network create cheetah-infrastructure | |
# run: docker network create cheetah-infrastructure | |
- name: Run development environment | |
run: docker compose up --quiet-pull --force-recreate -d | |
- name: Start mye2eclient container in shared network | |
run: docker run -d -v "${PWD}/tests/:/opt/tests/" -it --name mye2eclient --network=cheetah-infrastructure alpine:latest | |
- name: Setup mye2eclient container | |
run: | | |
docker exec mye2eclient apk add curl jq bash httpie | |
- name: "Wait for opensearch, the slowest component" | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 3 | |
max_attempts: 25 | |
retry_wait_seconds: 5 | |
warning_on_retry: false | |
command: 'docker exec mye2eclient curl -sS -X GET -H "Content-Type: application/json" http://admin:admin@opensearch:9200/_cat/indices' | |
- name: Check docker health | |
run: | | |
echo $(docker compose ps -a | grep 'unhealthy') | |
docker compose ps -a | grep 'unhealthy' && echo "Services unhealthy" && exit 1 || exit 0 | |
- name: opensearch test | |
run: docker exec mye2eclient bash /opt/tests/opensearch.sh | |
- name: kafka test | |
run: docker exec mye2eclient bash /opt/tests/kafka.sh | |
- name: schemaregistry test | |
run: docker exec mye2eclient bash /opt/tests/schemaregistry.sh | |
#- name: "see logs" | |
# run: docker logs cheetah-lib-templates-java-e2e-job-name-job |