1
1
mirror of https://github.com/theoludwig/advent_of_code.git synced 2025-05-18 19:27:51 +02:00

chore: simplify external tools dependency management

This commit is contained in:
2024-02-08 14:23:24 +01:00
parent 51f9ac4bfc
commit 68078034e6
11 changed files with 2640 additions and 86 deletions

View File

@ -29,26 +29,6 @@ jobs:
- run: "cargo clippy --verbose -- -D warnings"
- run: "cargo fmt -- --check"
lint-markdown:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.1"
- uses: "DavidAnson/markdownlint-cli2-action@v15.0.0"
with:
config: ".markdownlint-cli2.jsonc"
globs: "**/*.md"
lint-commit:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.1"
- uses: "wagoid/commitlint-github-action@v5.4.5"
with:
configFile: ".commitlintrc.json"
failOnWarnings: true
lint-general:
runs-on: "ubuntu-latest"
steps:
@ -57,10 +37,11 @@ jobs:
- name: "Setup Node.js"
uses: "actions/setup-node@v4.0.1"
with:
node-version: "20.11.0"
node-version: "20.x"
- run: "npm install --global editorconfig-checker@5.1.2"
- run: "npm install --global prettier@3.2.4"
- run: "npm clean-install"
- run: "editorconfig-checker"
- run: "prettier . --check"
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
- run: "npm run lint:editorconfig"
- run: "npm run lint:markdown"
- run: "npm run lint:prettier"