diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index 4c69355..ce9c074 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 742a877..bc242a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bf1d1d0..63e3818 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/__tests__/index.spec.js b/__tests__/index.spec.js index d12c38d..16b7cef 100644 --- a/__tests__/index.spec.js +++ b/__tests__/index.spec.js @@ -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,