Skip to content

Commit d5c3560

Browse files
committed
feat: Add cross-platform testing on macOS
Signed-off-by: Osama Rabea <[email protected]>
1 parent cc19c93 commit d5c3560

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,38 @@ 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-latest]
50+
steps:
51+
- name: Check out repository code
52+
uses: actions/checkout@v2
53+
54+
- name: Install dependencies (macOS)
55+
if: runner.os == 'macOS'
56+
run: |
57+
brew install shellcheck yamllint
58+
npm install -g npm@latest
59+
60+
- name: Build Fablo
61+
run: |
62+
shellcheck --version && \
63+
yamllint -v && \
64+
npm install && \
65+
npm run build && \
66+
./fablo-build.sh
67+
68+
- name: Run unit tests
69+
run: npm run test:unit
70+
71+
- name: Lint
72+
run: npm run lint
73+
74+
4375
# test-k8:
4476
# needs: test-main
4577
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)