Skip to content

Commit 0cba52b

Browse files
committed
Test on windows and MacOS
1 parent c81ed35 commit 0cba52b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-latest
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
812

913
steps:
14+
- name: Configure Git line endings
15+
run: git config --global core.autocrlf false
16+
1017
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1118

1219
- name: Build
@@ -18,7 +25,10 @@ jobs:
1825
- name: 📦 Install dependencies
1926
run: yarn --frozen-lockfile
2027

21-
- run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
28+
- name: Start Xvfb (Linux only)
29+
if: runner.os == 'Linux'
30+
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
31+
2232
- run: yarn run test
2333
env:
2434
DISPLAY: ":99.0"

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"printWidth": 120,
44
"semi": true,
55
"singleQuote": false,
6-
"bracketSpacing": true
6+
"bracketSpacing": true,
7+
"endOfLine": "lf"
78
}

0 commit comments

Comments
 (0)