fix: restore local overrides after alef regeneration #838
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: CI Validate | |
| on: | |
| workflow_run: | |
| workflows: ["Publish Release"] | |
| types: [completed] | |
| push: | |
| branches: [main] | |
| paths: | |
| - "**" | |
| - .task/** | |
| - Taskfile.yaml | |
| - ".github/workflows/ci-validate.yaml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "**" | |
| - .task/** | |
| - Taskfile.yaml | |
| - ".github/workflows/ci-validate.yaml" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-validate-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| GO_VERSION: "1.26.0" | |
| GO_TOOLCHAIN: "go1.26.0" | |
| GOLANGCI_LINT_VERSION: "latest" | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 # v6 | |
| - name: Install Task | |
| uses: go-task/setup-task@v2 # v2 | |
| with: | |
| version: 3.46.4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 # v7 | |
| with: | |
| enable-cache: true | |
| - name: Install Prek | |
| run: scripts/ci/validate/install-prek.sh | |
| shell: bash | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 # v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Setup Rust | |
| uses: kreuzberg-dev/actions/setup-rust@v1 # v1 | |
| with: | |
| components: rustfmt, clippy, llvm-tools-preview | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 # v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| check-latest: true | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 # v5 | |
| with: | |
| distribution: temurin | |
| java-version: "25.0.2+10" | |
| - name: Setup Elixir | |
| uses: erlef/setup-beam@v1 # v1 | |
| with: | |
| elixir-version: "1.19" | |
| otp-version: "28.1" | |
| - name: Install Elixir Dependencies | |
| run: task elixir:install | |
| shell: bash | |
| - name: Setup R | |
| uses: kreuzberg-dev/actions/setup-r@v1 # v1 | |
| with: | |
| install-deps-script: scripts/ci/r/install-deps.sh | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 # v1 | |
| with: | |
| ruby-version: "3.3" | |
| bundler-cache: false | |
| - name: Install Ruby Dependencies | |
| run: task ruby:install | |
| shell: bash | |
| - name: Setup Node Workspace | |
| uses: kreuzberg-dev/actions/setup-node-workspace@v1 # v1 | |
| - name: Install Dependencies | |
| uses: nick-fields/retry@v4 # v4 | |
| with: | |
| timeout_minutes: 5 | |
| max_attempts: 3 | |
| retry_wait_seconds: 30 | |
| command: uv sync --all-extras --no-install-workspace | |
| shell: bash | |
| - name: Install Go Lint Dependencies | |
| run: task go:install | |
| shell: bash | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@2.37.0 # 2 | |
| with: | |
| php-version: "8.4" | |
| tools: composer:2.9.1 | |
| coverage: none | |
| - name: Install PHP Dependencies | |
| run: task php:install | |
| shell: bash | |
| - name: Run Lint Checks | |
| run: task lint:check | |
| shell: bash | |
| - name: Check Code Formatting | |
| run: task format:check | |
| shell: bash | |
| - name: Install C/C++ tools | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y --no-install-recommends cppcheck clang-format | |
| - name: Load Cached Prek Dependencies | |
| id: cached-prek-dependencies | |
| uses: actions/cache@v5 # v5 | |
| with: | |
| path: ~/.cache/prek/ | |
| key: prek|${{ env.pythonLocation }}|${{ hashFiles('.prek-config.yaml') }} | |
| - name: Run Pre-commit Hooks | |
| env: | |
| SKIP: golangci-lint-packages,golangci-lint-examples | |
| run: task pre-commit:run | |
| shell: bash | |
| - name: Install Python README Dependencies | |
| run: pip install pyyaml jinja2 | |
| shell: bash | |
| - name: Validate READMEs | |
| run: task docs:generate-readme:check | |
| shell: bash |