update readme adn github actions, update deploy scripts #103
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
on: pull_request | |
name: Review | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
name: Changelog should be updated | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Git fetch | |
run: git fetch | |
- name: Check that changelog has been updated. | |
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0 | |
documentation: | |
runs-on: ubuntu-latest | |
name: Documentation should be updated | |
if: github.event_name == 'pull_request' | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Git fetch | |
run: git fetch | |
- name: Check that documentation (Markdown files excluding changelog and pr-template) has been updated. | |
run: git diff --exit-code origin/${{ github.base_ref }} -- git ls-files '*.md' ':!:CHANGELOG.md' ':!:.github/' && exit 1 || exit 0 | |
run-code-blocks-from-readme: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
blocks: | |
- development-install markdown-check | |
- development-install composer-normalize | |
- development-install check-coding-standards | |
- development-install shell-check | |
- development-install code-analysis | |
- development-install test-create-release | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
# https://github.com/actions/setup-go | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.0' | |
# https://github.com/mikkelricky/markdown-code-runner | |
# We need to run as root in GitHub Actions, hence the `--substitutions` hack! | |
- run: | | |
go run github.com/mikkelricky/markdown-code-runner@latest run \ | |
--verbose --echo '👉 ' \ | |
--substitutions '{"docker run ": "docker run --user root ", "docker compose run ": "docker compose run --user root "}' \ | |
${{ matrix.blocks }} |