Skip to content

Commit

Permalink
chore: Update test workflow to use setup-docker-macos-action for macO…
Browse files Browse the repository at this point in the history
…S setup
  • Loading branch information
7nohe committed May 19, 2024
1 parent e4f659d commit dc9da68
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-13, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
Expand All @@ -30,11 +30,9 @@ jobs:
- run: cp .env.example .env
working-directory: examples/laravel10-app

- name: install docker on macos
if: matrix.os == 'macos-latest'
run: |
brew install docker colima
colima start
- name: Setup Docker on macOS
uses: douglascamata/setup-docker-macos-action@v1-alpha
if: startsWith(matrix.os, 'macos')

- name: composer install
run: docker run --rm -u "$(id -u):$(id -g)" -v "$(pwd):/var/www/html" -w /var/www/html laravelsail/php81-composer:latest composer install --ignore-platform-reqs
Expand Down

0 comments on commit dc9da68

Please sign in to comment.