Skip to content

test(postinstall): add tests for correct windows symlinking #23

test(postinstall): add tests for correct windows symlinking

test(postinstall): add tests for correct windows symlinking #23

name: Integration-Tests
on:
pull_request:
branches: [main]
paths:
- 'package.json'
- 'scripts/**'
push:
branches: [main]
paths:
- 'package.json'
- 'scripts/**'
workflow_dispatch:
jobs:
integration-test:
strategy:
fail-fast: false
matrix:
version: [22, 20, 18]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
- run: |
npm ci
- name: Run integration test with non-admin user on windows
if: matrix.os == 'windows-latest'
uses: ./.github/actions/run-as-non-admin
with:
cmd: 'C:\\Program Files\\nodejs\\npm.cmd'
args: run test:integration
- name: Run integration tests
if: matrix.os != 'windows-latest'
run: |
npm run test:integration