Add workflow status badges to README #3
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: Linting | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: # Allow manual triggering | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Update | |
run: sudo apt-get update | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Setup Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: clippy, rustfmt | |
- name: Install yamllint | |
run: sudo apt-get install -y yamllint | |
- name: Install ShellCheck | |
run: sudo apt-get install -y shellcheck | |
- name: Install markdownlint-cli | |
run: npm install -g markdownlint-cli | |
- name: Run all linters | |
run: ./scripts/linting/lint.sh all |