Skip to content

Commit

Permalink
ci: windows & mac (#342)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
LeoDog896 and JAdshead authored Oct 5, 2023
1 parent 20a6e34 commit 819163e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ on:

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14.x', '16.x', '18.x' ]
name: Node ${{ matrix.node }}
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} - ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
git remote set-branches --add origin main
git fetch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ on:

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14.x', '16.x', '18.x' ]
name: Node ${{ matrix.node }}
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} - ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
git remote set-branches --add origin main
git fetch
Expand Down
2 changes: 1 addition & 1 deletion __tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ describe('toMatchImageSnapshot', () => {
failureThresholdType: 'pixel',
receivedImageBuffer: undefined,
snapshotIdentifier: 'test-spec-js-test-1-1-snap',
snapshotsDir: 'path/to/__image_snapshots__',
snapshotsDir: process.platform === 'win32' ? 'path\\to\\__image_snapshots__' : 'path/to/__image_snapshots__',
storeReceivedOnFailure: false,
updatePassedSnapshot: false,
updateSnapshot: false,
Expand Down

0 comments on commit 819163e

Please sign in to comment.