chore(deps): bump DavidAnson/markdownlint-cli2-action from 10 to 15 in /rust/repo/{{ cookiecutter.repo_name }}/.github/workflows #425
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
--- | |
name: ci | |
"on": | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
rendering: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
cookiecutter_directory: | |
- rust/repo | |
- rust/workspace-crate | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: abatilo/actions-poetry@v2 | |
- run: sudo apt-get install -y rdfind symlinks patchutils | |
- run: ./generate-examples.sh ${{ matrix.cookiecutter_directory }} | |
- name: Ensure there are no unaccounted for changes | |
run: |- | |
set +e | |
git diff --quiet --ignore-submodules HEAD | |
RESULT=$? | |
set -e | |
if [[ $RESULT != 0 ]]; then | |
echo "Please run generate-examples.sh to update examples." 1>&2 | |
git diff --ignore-submodules HEAD | |
fi | |
exit $RESULT | |
mac-rendering: | |
runs-on: macos-latest | |
needs: | |
- rendering | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: abatilo/actions-poetry@v2 | |
- run: brew install rdfind symlinks | |
- run: ./generate-examples.sh rust/repo | |
- name: Ensure there are no unaccounted for changes | |
run: |- | |
set +e | |
git diff --quiet --ignore-submodules HEAD | |
RESULT=$? | |
set -e | |
if [[ $RESULT != 0 ]]; then | |
echo "Mac example generation differs from linux veresion" 1>&2 | |
git diff --ignore-submodules HEAD | |
fi | |
exit $RESULT | |
lint: | |
runs-on: ubuntu-latest | |
needs: | |
- rendering | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: xt0rted/markdownlint-problem-matcher@v2 | |
- uses: DavidAnson/markdownlint-cli2-action@v14 | |
with: | |
globs: "**/*.md" | |
# FIXME: Add yamllint problem matcher | |
- run: yamllint -s .github */*/examples | |
notify: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && failure() | |
needs: | |
- lint | |
- rendering | |
steps: | |
- name: Notify Discord on failure | |
uses: sarisia/actions-status-discord@v1 | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
username: "Github Actions" | |
status: Failure | |
color: 0xff0000 | |
nodetail: true | |
# yamllint disable rule:line-length | |
title: "${{ github.repository }} ${{ github.workflow }} has failed on ${{ github.event_name }} to ${{ github.ref_name }}" | |
url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
description: > | |
[`@${{ github.actor }}`](${{ github.server_url }}/${{ github.actor }}) | |
was the last one to touch | |
[that repository](${{ github.server_url }}/${{ github.repository }}), | |
is all I'm saying. | |
avatar_url: "https://media0.giphy.com/media/oe33xf3B50fsc/200.gif" | |
# yamllint enable rule:line-length |