Skip to content

[3006.x] Add tests for NSIS installer #2

[3006.x] Add tests for NSIS installer

[3006.x] Add tests for NSIS installer #2

name: Test Installer
on:
workflow_call:
inputs:
changed-files:
required: true
type: string
description: JSON string containing information about changed files
cache-prefix:
required: true
type: string
description: Seed used to invalidate caches
pull_request:
paths:
- 'pkg/windows/**'
jobs:
test:
name: Test
runs-on: windows-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Setup Python Tools Scripts
uses: ./.github/actions/setup-python-tools-scripts
with:
cache-prefix: ${{ inputs.cache-prefix }}
- name: Build Windows Dummy Installer
run: tools pkg build dummy-windows-installer
- name: Install nox
run: pip install nox
- name: Run Installer Tests
if: github.event_name == 'pull_request' && fromJSON(inputs.changed-files)['tests']
run: nox -e "ci-test-installer" -- nsis