chore(deps): update pre-commit hooks #354
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
| # SPDX-FileCopyrightText: Copyright (C) 2025 Opal Health Informatics Group <https://www.opalmedapps.com> | |
| # | |
| # SPDX-License-Identifier: MIT | |
| --- | |
| name: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| merge_group: | |
| concurrency: | |
| group: ${{ github.ref }}$-{{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| markdownlint-default: | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/markdownlint.yaml | |
| markdownlint-semantic-linebreak: | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/markdownlint.yaml | |
| with: | |
| semantic-linebreak: true | |
| markdownlint-mkdocs-material-linter: | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/markdownlint.yaml | |
| with: | |
| mkdocs-material-linter: true | |
| markdownlint-all-options: | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/markdownlint.yaml | |
| with: | |
| semantic-linebreak: true | |
| mkdocs-material-linter: true | |
| reuse-compliance-check: | |
| uses: ./.github/workflows/reuse.yaml | |
| docker-build: | |
| permissions: | |
| contents: read | |
| packages: write | |
| uses: ./.github/workflows/docker-build.yaml | |
| with: | |
| context: ./.github/ | |
| test-command: which bash | |
| docker-build-action: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| # required to push the image to the registry | |
| packages: write | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/docker-build | |
| id: build-image | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| image: ${{ env.IMAGE_NAME }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| context: ./.github/ | |
| - name: Test the image | |
| env: | |
| TAG: ${{ steps.build-image.outputs.tag }} | |
| run: docker run --rm "$TAG" which bash |