Skip to content

Commit 819163e

Browse files
ci: windows & mac (#342)
* ci: windows & mac * chore: bump to actions/checkout@v4 * ci: run os on health check * ci: mention what OS Co-authored-by: Jonny Adshead <[email protected]> * ci: mention os x2 Co-authored-by: Jonny Adshead <[email protected]> --------- Co-authored-by: Jonny Adshead <[email protected]>
1 parent 20a6e34 commit 819163e

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/health-check.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ on:
77

88
jobs:
99
tests:
10-
runs-on: ubuntu-latest
1110
strategy:
1211
matrix:
1312
node: [ '14.x', '16.x', '18.x' ]
14-
name: Node ${{ matrix.node }}
13+
os: [ ubuntu-latest, windows-latest, macos-latest ]
14+
runs-on: ${{ matrix.os }}
15+
name: Node ${{ matrix.node }} - ${{ matrix.os }}
1516
steps:
16-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1718
- run: |
1819
git remote set-branches --add origin main
1920
git fetch

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
persist-credentials: false
2323
- name: Setup Node.js

.github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ on:
77

88
jobs:
99
tests:
10-
runs-on: ubuntu-latest
1110
strategy:
1211
matrix:
1312
node: [ '14.x', '16.x', '18.x' ]
14-
name: Node ${{ matrix.node }}
13+
os: [ ubuntu-latest, windows-latest, macos-latest ]
14+
runs-on: ${{ matrix.os }}
15+
name: Node ${{ matrix.node }} - ${{ matrix.os }}
1516
steps:
16-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1718
- run: |
1819
git remote set-branches --add origin main
1920
git fetch

__tests__/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ describe('toMatchImageSnapshot', () => {
448448
failureThresholdType: 'pixel',
449449
receivedImageBuffer: undefined,
450450
snapshotIdentifier: 'test-spec-js-test-1-1-snap',
451-
snapshotsDir: 'path/to/__image_snapshots__',
451+
snapshotsDir: process.platform === 'win32' ? 'path\\to\\__image_snapshots__' : 'path/to/__image_snapshots__',
452452
storeReceivedOnFailure: false,
453453
updatePassedSnapshot: false,
454454
updateSnapshot: false,

0 commit comments

Comments
 (0)