Skip to content

Commit 25a2c01

Browse files
committed
setup docker on macos
1 parent dcce5df commit 25a2c01

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/integration-test.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,38 @@ on:
2222
type: choice
2323
options:
2424
- ubuntu-latest
25-
- macos-latest
25+
- macos-13
2626

2727

2828
jobs:
2929
run-it-tests-job:
3030
runs-on: ${{ matrix.runner }}
3131
strategy:
3232
matrix:
33-
runner:
34-
- ubuntu-latest
35-
- macos-latest
33+
runner: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.runner-os && fromJSON(format('["{0}"]', github.event.inputs.runner-os))) || fromJSON('["ubuntu-latest", "macos-13"]') }}
3634
steps:
3735
- name: Checkout
38-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3937

4038
- name: Set up Python 3.11
4139
id: setup-python
4240
uses: actions/setup-python@v2
4341
with:
4442
python-version: 3.11
4543

44+
- name: Debug Runner Context (Ubuntu)
45+
if: runner.os == 'Linux' # Only run this debug step on Linux
46+
run: |
47+
echo "DEBUG: Runner OS is ${{ runner.os }}"
48+
echo "DEBUG: Event name is ${{ github.event_name }}"
49+
echo "DEBUG: Evaluating runner.os == 'macOS' -> ${{ runner.os == 'macOS' }}"
50+
echo "DEBUG: Evaluating github.event_name == 'schedule' -> ${{ github.event_name == 'schedule' }}"
51+
echo "DEBUG: Evaluating full condition -> ${{ runner.os == 'macOS' && github.event_name == 'schedule' }}"
52+
4653
- name: Docker setup (macos only)
47-
id: setup-docker-mac
48-
if: ${{ runner.os == 'macOS' }}
54+
if: ${{ runner.os == 'macOS' && github.event_name == 'schedule' }}
4955
run: |
56+
brew install colima
5057
brew install docker
5158
colima start
5259

0 commit comments

Comments
 (0)