chore(ci): add linting, formatting check, and auditing

This commit is contained in:
2026-06-06 15:32:33 +02:00
parent 3c86e9eb36
commit b5a83f100d
2 changed files with 18 additions and 2 deletions
+14 -2
View File
@@ -40,9 +40,21 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: ${{ github.event_name == 'pull_request' }} skipPush: ${{ github.event_name == 'pull_request' }}
- name: Format Check
shell: bash -c "nix develop --no-pure-eval --accept-flake-config --command {0}"
run: just format-check
- name: Audit
shell: bash -c "nix develop --no-pure-eval --accept-flake-config --command {0}"
run: just audit
- name: Lint
shell: bash -c "nix develop --no-pure-eval --accept-flake-config --command {0}"
run: just lint-report
- name: Coverage - name: Coverage
run: | shell: bash -c "nix develop --no-pure-eval --accept-flake-config --command {0}"
nix develop --no-pure-eval --accept-flake-config --command just coverage run: just coverage-ci
- name: Sonar analysis - name: Sonar analysis
uses: SonarSource/sonarqube-scan-action@v6 uses: SonarSource/sonarqube-scan-action@v6
+4
View File
@@ -24,6 +24,10 @@ build-release:
lint: lint:
cargo clippy --all-targets cargo clippy --all-targets
lint-report:
mkdir -p coverage
cargo clippy --all-targets --message-format=json > coverage/clippy.json
release-build: release-build:
cargo build --release cargo build --release