ci: consume org workflows #268
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |