Skip to content

Commit 4542577

Browse files
committed
configure test-5-v3 to run on macos-15 arm with Docker + Colima
1 parent 39e6e64 commit 4542577

File tree

1 file changed

+23
-40
lines changed

1 file changed

+23
-40
lines changed

.github/workflows/test-on-push.yml

Lines changed: 23 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -40,45 +40,6 @@ jobs:
4040
- name: Lint
4141
run: npm run lint && ./lint.sh
4242

43-
44-
test-cross-platform:
45-
runs-on: ${{ matrix.os }}
46-
strategy:
47-
fail-fast: false
48-
matrix:
49-
os: [ubuntu-latest, macos-13]
50-
steps:
51-
- name: Check out repository code
52-
uses: actions/checkout@v2
53-
54-
- name: Set up Docker on macOS with Colima
55-
if: runner.os == 'macOS'
56-
uses: douglascamata/setup-docker-macos-action@v1
57-
58-
- name: Verify Docker
59-
run: docker --version
60-
61-
- name: Install dependencies (macOS)
62-
if: runner.os == 'macOS'
63-
run: |
64-
brew install shellcheck yamllint
65-
npm install -g npm@latest
66-
67-
- name: Build Fablo
68-
run: |
69-
shellcheck --version && \
70-
yamllint -v && \
71-
npm install && \
72-
npm run build && \
73-
./fablo-build.sh
74-
75-
- name: Run unit tests
76-
run: npm run test:unit
77-
78-
- name: Lint
79-
run: npm run lint
80-
81-
8243

8344
# test-k8:
8445
# needs: test-main
@@ -212,10 +173,32 @@ jobs:
212173
213174
test-05-v3:
214175
needs: test-main
215-
runs-on: ubuntu-latest
176+
runs-on: macos-15
216177
steps:
217178
- name: Check out repository code
218179
uses: actions/checkout@v2
180+
181+
- name: Install Docker + Colima
182+
run: |
183+
brew update
184+
brew install qemu colima docker
185+
brew uninstall --ignore-dependencies lima
186+
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/45464b6c4788a80be3f131ab5e2a4468cdfa960c/Formula/l/lima.rb > lima.rb
187+
brew install lima.rb
188+
LIMACTL_PATH=$(brew --prefix)/bin/limactl
189+
sudo curl -L -o $LIMACTL_PATH https://github.com/mikekazakov/lima-nohvf/raw/master/limactl
190+
sudo chmod +x $LIMACTL_PATH
191+
colima start --network-address --arch arm64 --vm-type=qemu
192+
mkdir -p ~/.docker/cli-plugins
193+
brew install docker-compose
194+
ln -sfn $(brew --prefix)/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
195+
196+
- name: Install dependencies
197+
run: |
198+
brew install shellcheck yamllint
199+
npm install -g npm@latest
200+
npm install
201+
219202
220203
- name: Build Fablo
221204
run: |

0 commit comments

Comments
 (0)