/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/nsis-tests.yml
76 строк
2 KB
Twangboy
ci: pin GitHub Actions to commit SHAs with version comments
10 апр 2026, 21:48
10 апр 2026, 21:48
d95192b
Код
Авторство
О чём код?
--- name: Test NSIS Installer on: workflow_call: inputs: changed-files: required: true type: string description: JSON string containing information about changed files full: required: true type: boolean description: Is this a full testrun or not ci-python-version: required: true type: string description: The version of python to use for the workflow run jobs: Test-NSIS-Logic: name: Logic Tests runs-on: - windows-latest if: ${{ inputs.full || contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) || fromJSON(inputs.changed-files)['nsis_tests'] }} steps: - name: Checkout Salt uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Set Up Python ${{ inputs.ci-python-version }} uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 with: python-version: "${{ inputs.ci-python-version }}" - name: Install NSIS run: .\pkg\windows\install_nsis.cmd -CICD shell: cmd - name: Build Test Installer run: .\pkg\windows\nsis\tests\setup.cmd -CICD shell: cmd - name: Run Config Tests run: .\pkg\windows\nsis\tests\test.cmd -CICD .\config_tests shell: cmd Test-NSIS-Stress: name: Stress Tests runs-on: - windows-latest if: ${{ inputs.full || contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) || fromJSON(inputs.changed-files)['nsis_tests'] }} steps: - name: Checkout Salt uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Set Up Python ${{ inputs.ci-python-version }} uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 with: python-version: "${{ inputs.ci-python-version }}" - name: Install NSIS run: .\pkg\windows\install_nsis.cmd -CICD shell: cmd - name: Build Test Installer run: .\pkg\windows\nsis\tests\setup.cmd -CICD shell: cmd - name: Run Stress Test run: .\pkg\windows\nsis\tests\test.cmd -CICD .\stress_tests shell: cmd