Skip to content

Commit

Permalink
Install docker-compose for ubuntu-latest and start Docker daemon for …
Browse files Browse the repository at this point in the history
…macOs-latest
  • Loading branch information
jarodmeng committed Jan 3, 2025
1 parent ad26c95 commit c83229b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,33 @@ jobs:
extra-packages: any::rcmdcheck
needs: check

# Install Docker Compose on Ubuntu
- name: Install Docker Compose on Ubuntu
if: matrix.config.os == 'ubuntu-latest'
run: |
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'
Expand Down

0 comments on commit c83229b

Please sign in to comment.