Added Super /Mega Linter #8
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: Linting | |
on: # yamllint disable-line rule:truthy | |
# push: null | |
pull_request: null | |
permissions: {} | |
jobs: | |
Super_Linter: | |
name: Super Linter | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
# To report GitHub Actions status checks | |
statuses: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# super-linter needs the full git history to get the | |
# list of files that changed across commits | |
fetch-depth: 0 | |
- name: Super-linter | |
uses: super-linter/super-linter@v7.2.0 # x-release-please-version | |
env: | |
# Linters | |
VALIDATE_MARKDOWN: true | |
# VALIDATE_RUST_CLIPPY: true # Cant Use as the version is not at 1.81 yet in the linter | |
VALIDATE_YAML: true | |
# Auto Fix the files | |
# FIX_RUST_CLIPPY: true # Cant Use as the version is not at 1.81 yet in the linter | |
FIX_MARKDOWN: true | |
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
Clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Clippy check on src | |
run: cargo clippy --manifest-path Cargo.toml -- -D warnings | |
- name: Clippy check on utils | |
run: cargo clippy --manifest-path utils/Cargo.toml -- -D warnings | |
- name: Clippy check on esp32 example | |
run: cargo clippy --manifest-path examples/esp32-c3/Cargo.toml -- -D warnings | |
Formatter: | |
name: Cargo Formatter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Rustfmt check on src | |
run: cargo fmt --manifest-path Cargo.toml -- --check | |
- name: Rustfmt check on utils | |
run: cargo fmt --manifest-path utils/Cargo.toml -- --check | |
- name: Rustfmt check on esp32 example | |
run: cargo fmt --manifest-path examples/esp32-c3/Cargo.toml -- --check |