Repository navigation
feat: recover missing template hardening #11
Workflow file for this run
This file contains hidden or 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: Template Quality | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: template-quality-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| render: | |
| name: Render ${{ matrix.visibility }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| visibility: | |
| - private | |
| - public | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 | |
| with: | |
| version: "0.12.19" | |
| enable-cache: false | |
| - name: Render project | |
| run: | | |
| uvx copier==9.18.2 copy \ | |
| --trust \ | |
| --vcs-ref=HEAD \ | |
| --defaults \ | |
| -d project_name=template-smoke \ | |
| -d repository_visibility=${{ matrix.visibility }} \ | |
| . \ | |
| "$RUNNER_TEMP/generated" | |
| - name: Verify visibility-specific files | |
| run: | | |
| if [[ "${{ matrix.visibility }}" == "public" ]]; then | |
| test -f "$RUNNER_TEMP/generated/LICENSE" | |
| test -f "$RUNNER_TEMP/generated/.github/workflows/release.yml" | |
| else | |
| test ! -e "$RUNNER_TEMP/generated/LICENSE" | |
| test ! -e "$RUNNER_TEMP/generated/.github/workflows/release.yml" | |
| fi |