Skip to content

ci: consume org workflows #269

ci: consume org workflows

ci: consume org workflows #269

name: Integration-Tests
on:
pull_request:
branches: [main]
paths:
- '.github/**'
- 'package.json'
- 'scripts/**'
- 'test/**/*.integrationtest.js'
push:
branches: [main]
paths:
- '.github/**'
- 'package.json'
- 'scripts/**'
- 'test/**/*.integrationtest.js'
workflow_dispatch:
concurrency:
group: integration-test-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
integration-test:
strategy:
fail-fast: false
matrix:
version: [22, 20, 18]
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
# running test:setup inside run-as-non-admin causes problems with creating OS links
# -> run it outside of run-as-non-admin
- run: |
npm i -g npm
npm ci
npm run test:setup
npm run rollup:off
- name: Run integration test with non-admin user on windows
if: matrix.os == 'windows-latest'
uses: ./.github/actions/run-as-non-admin
with:
run: |
echo "whoami:$(whoami)"
echo "home:$HOME"
echo "userprofile:$USERPROFILE"
npm run test:integration
- name: Run integration tests
if: matrix.os != 'windows-latest'
run: |
npm run test:integration