Skip to content

Commit 13bcffb

Browse files
committed
fix(ci): avoid Docker issues on macOS by using setup-docker-macos-action
1 parent 4f8c7b0 commit 13bcffb

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

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

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -42,44 +42,44 @@ jobs:
4242

4343

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

0 commit comments

Comments
 (0)