Run smoke test #118
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
# Copyright (c) 2024 Sebastian Pipping <[email protected]> | |
# Licensed under GNU Affero GPL v3 or later | |
name: Run smoke test | |
# Drop permissions to minimum for security | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: '0 16 * * 5' # Every Friday 4pm | |
workflow_dispatch: | |
jobs: | |
smoke_test: | |
name: Run the test suite | |
strategy: | |
matrix: | |
python-version: [3.9, 3.13] # no particular need for in-between versions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run smoke test | |
run: | | |
set -x | |
python3 --version | |
./Caddyfile.generate --config sites.cfg.EXAMPLE --saltstack > actual-output.txt | |
diff -u0 \ | |
<(tail -n +3 .github/workflows/expected-output.txt) \ | |
<(tail -n +3 actual-output.txt) |