github.com/siglens/siglens@v0.0.0-20240328180423-f7ce9ae441ed/.github/workflows/develop-e2e-install.yml (about)

     1  name: develop-e2e-install-test
     2  
     3  on:
     4    schedule:
     5      - cron: '0 15 * * *'
     6  jobs:
     7    build:
     8      runs-on: ubuntu-latest
     9  
    10      steps:
    11      - name: Checkout code
    12        uses: actions/checkout@v2
    13  
    14      - name: Set up Docker Buildx
    15        uses: docker/setup-buildx-action@v1
    16  
    17      - name: Build Docker image
    18        uses: docker/build-push-action@v2
    19        with:
    20          context: .
    21          push: false
    22          load: true
    23          tags: siglens-develop:latest
    24  
    25      - name: Run install_with_docker.sh script
    26        run: |
    27          chmod +x ./install_with_docker.sh
    28          ./install_with_docker.sh
    29        env:
    30          DOCKER_IMAGE_NAME: "siglens-develop:latest"
    31          DOCKER_COMPOSE_YAML: "./docker-compose.yml"
    32          USE_LOCAL_DOCKER_COMPOSE: true
    33          TERM: xterm
    34  
    35      - name: Verify server is running
    36        run: |
    37          echo "Waiting for server to start..."
    38          sleep 5
    39          if ! curl --silent http://localhost:5122 | head -n 30; then
    40            echo "Server did not start within 5 seconds"
    41            exit 1
    42          fi
    43      - name: Run E2E Test
    44        run: |
    45          cd tools/sigclient
    46          go run main.go query esbulk -d http://localhost:5122 -f ../../cicd/sample_log_dataset_queries.csv