docs: SECURITY.md #16
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: | |
- '*' # matches every branch that doesn't contain a '/' | |
- '*/*' # matches every branch containing a single '/' | |
- '**' # matches every branch | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
prettier: | |
name: Prettier Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run Prettier | |
id: prettier-run | |
uses: rutajdash/[email protected] | |
with: | |
config_path: ./.prettierrc.yml | |
- name: Prettier Output | |
if: ${{ failure() }} | |
shell: bash | |
run: | | |
echo "The following files are not formatted:" | |
echo "${{steps.prettier-run.outputs.prettier_output}}" | |
commitlint: | |
name: Commitlint Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: dafnik/commitlint@main |