chore(ci): add linting, formatting check, and auditing
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 --features test-utils --message-format=json > coverage/clippy.json 2> /dev/null
|
||||||
|
|
||||||
release-build:
|
release-build:
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user