full_run_win #35
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: full_run_win | |
on: | |
workflow_call: | |
# Allow manual trigger | |
workflow_dispatch: | |
schedule: | |
# At 17:03 on Saturday (on main SaltStack repo) | |
- cron: '3 17 * * 6' | |
jobs: | |
gsv: | |
name: Get Salt versions | |
if: github.event_name == 'workflow_dispatch' || !github.event.repository.fork | |
runs-on: ubuntu-latest | |
outputs: | |
salt-latest: ${{ steps.get-salt-versions.outputs.salt-latest }} | |
steps: | |
- id: get-salt-versions | |
uses: dafyddj/get-salt-versions@847b788138982a01def107014dd395b46b3ef2c5 # v3.3.1 | |
test: | |
name: Run URL tests | |
needs: gsv | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Setup Salt | |
uses: dafyddj/setup-salt-win@1fe09b1c0cdb721a43f9e5faa9bd079af8701803 # v2.2.0 | |
with: | |
salt-version: ${{ needs.gsv.outputs.salt-latest }} | |
- name: Setup `pip` dependencies | |
run: | | |
salt-pip install -r .cicd/requirements.txt | |
if ($LASTEXITCODE) { | |
Write-Host ("::error title=salt-pip::salt-pip returned exit code: $LASTEXITCODE") | |
exit 1 | |
} | |
- name: Run URL test | |
run: | | |
& "C:\Program Files\Salt Project\Salt\Scripts\python.exe" .\.cicd\tests.py --cron |