Skip to content

Commit e76a3dc

Browse files
committed
CI/node-management: update to support macos
1 parent a4948b3 commit e76a3dc

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/test-docs-scripts-node-management.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-22.04, ubuntu-24.04]
17+
os: [ubuntu-22.04, ubuntu-24.04, macos-latest]
1818

1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@v5
2222

23+
- name: Install Docker on macOS
24+
if: runner.os == 'macOS'
25+
run: |
26+
brew install docker
27+
brew install colima
28+
colima delete
29+
colima start
30+
2331
- name: Test build-info-docker script
2432
run: |
2533
bash website/docs/node-operators/scripts/build-info-docker.sh
@@ -41,12 +49,18 @@ jobs:
4149
runs-on: ${{ matrix.os }}
4250
strategy:
4351
matrix:
44-
os: [ubuntu-22.04, ubuntu-24.04]
52+
os: [ubuntu-22.04, ubuntu-24.04, macos-latest]
4553

4654
steps:
4755
- name: Checkout repository
4856
uses: actions/checkout@v5
4957

58+
- name: Install timeout on macOS
59+
if: runner.os == 'macOS'
60+
run: |
61+
brew install coreutils
62+
sudo ln -s /opt/homebrew/bin/gtimeout /usr/local/bin/timeout || sudo ln -s /usr/local/bin/gtimeout /usr/local/bin/timeout
63+
5064
- name: Create test environment
5165
run: |
5266
mkdir -p mina-workdir/producer-key

0 commit comments

Comments
 (0)