diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 913e79b..b1b79af 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -40,9 +40,21 @@ jobs: authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' 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 - run: | - nix develop --no-pure-eval --accept-flake-config --command just coverage + shell: bash -c "nix develop --no-pure-eval --accept-flake-config --command {0}" + run: just coverage-ci - name: Sonar analysis uses: SonarSource/sonarqube-scan-action@v6 diff --git a/justfile b/justfile index 3bf3a14..75bbdc1 100644 --- a/justfile +++ b/justfile @@ -24,6 +24,10 @@ build-release: lint: cargo clippy --all-targets +lint-report: + mkdir -p coverage + cargo clippy --all-targets --message-format=json > coverage/clippy.json + release-build: cargo build --release