From 4a09eeaad3f661f5aab401aeecd52d68095d5bde Mon Sep 17 00:00:00 2001 From: "Jarod G.R. Meng" Date: Fri, 3 Jan 2025 10:40:52 +0800 Subject: [PATCH] Remove macOs presto and trino server tests --- .github/workflows/check-standard.yaml | 31 ++++++++------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/check-standard.yaml b/.github/workflows/check-standard.yaml index 7e62ae9..4d28972 100644 --- a/.github/workflows/check-standard.yaml +++ b/.github/workflows/check-standard.yaml @@ -54,35 +54,15 @@ jobs: sudo apt-get update sudo apt-get install -y docker-compose - - # Install Docker and Docker Compose on macOS - - name: Install Docker on macOS - if: matrix.config.os == 'macOS-latest' - run: | - brew install --cask docker - brew install docker-compose - - # Start Docker Daemon on macOS - - name: Start Docker Daemon on macOS - if: matrix.config.os == 'macOS-latest' - run: | - open /Applications/Docker.app - # Wait for Docker daemon to be ready - while ! docker system info > /dev/null 2>&1; do - echo "Waiting for Docker daemon to start..." - sleep 5 - done - echo "Docker daemon is running." - # Start Docker Compose services - name: Start services with Docker Compose - if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'macOS-latest' + if: matrix.config.os == 'ubuntu-latest' run: | docker-compose up -d # Ensure Presto and Trino servers are running - name: Wait for Presto and Trino to be ready - if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'macOS-latest' + if: matrix.config.os == 'ubuntu-latest' run: | for i in {1..30}; do if curl -s http://localhost:8080/v1/info && curl -s http://localhost:8090/v1/info; then @@ -100,3 +80,10 @@ jobs: - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true + + # Stop and remove Docker containers + - name: Stop and remove Docker containers + if: matrix.config.os == 'ubuntu-latest' + run: | + docker stop $(docker ps -q) || true + docker rm $(docker ps -aq) || true