This repository was archived by the owner on Nov 3, 2025. It is now read-only.
CI #878
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 | |
| "on": | |
| push: | |
| branches: | |
| - trunk | |
| pull_request: | |
| branches: | |
| - trunk | |
| schedule: | |
| - cron: "0 0 * * TUE" | |
| permissions: {} | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| build: | |
| - alpine | |
| - debian | |
| - ubuntu | |
| include: | |
| - build: alpine | |
| dockerfile: alpine/Dockerfile | |
| - build: debian | |
| dockerfile: debian/bookworm/slim/Dockerfile | |
| - build: ubuntu | |
| dockerfile: ubuntu/noble/Dockerfile | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 | |
| - name: Build and push Docker images | |
| uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 | |
| with: | |
| context: . | |
| file: ${{ matrix.dockerfile }} | |
| push: false | |
| docker: | |
| name: Lint Dockerfiles | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| build: | |
| - alpine | |
| - debian | |
| - ubuntu | |
| include: | |
| - build: alpine | |
| dockerfile: alpine/Dockerfile | |
| - build: debian | |
| dockerfile: debian/bookworm/slim/Dockerfile | |
| - build: ubuntu | |
| dockerfile: ubuntu/noble/Dockerfile | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Lint ${{ matrix.build }} Dockerfile | |
| uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0 | |
| with: | |
| dockerfile: ${{ matrix.dockerfile }} | |
| ruby: | |
| name: Lint and format Ruby | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install Ruby toolchain | |
| uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0 | |
| with: | |
| ruby-version: ".ruby-version" | |
| bundler-cache: true | |
| - name: Lint and check formatting with Rubocop | |
| run: bundle exec rubocop --format github | |
| text: | |
| name: Lint and format text | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Setup Node.js runtime | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install toolchain | |
| run: npm ci | |
| - name: Format with prettier | |
| run: npx prettier --check '**/*' | |
| - name: Lint YAML sources with yamllint | |
| run: uv run yamllint --strict --format github . |