diff options
Diffstat
| -rw-r--r-- | .github/workflows/build.yml | 16 | +0 −16 |
| -rw-r--r-- | .github/workflows/legal.yml | 34 | +34 −0 |
| -rw-r--r-- | Makefile | 15 | +7 −8 |
| -rw-r--r-- | mise.toml | 2 | +1 −1 |
4 files changed, 42 insertions, 25 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e00dcd..4a41e24 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,26 +20,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - with: - fetch-depth: 0 - - - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3 - with: - version: 2026.7.5 - experimental: true - - - name: Check contribution sign-off - run: make signoff - uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 - - name: Check licenses - uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0 - - - name: Check dependencies - uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # 0.19.0 - - name: Check formatting run: cargo fmt --all --check diff --git a/.github/workflows/legal.yml b/.github/workflows/legal.yml new file mode 100644 --- /dev/null +++ b/.github/workflows/legal.yml @@ -0,0 +1,34 @@ +# Copyright (c) 2026 Nikolay Govorov +# SPDX-License-Identifier: AGPL-3.0-or-later + +name: Legal + +on: + push: + branches: [main] + tags: ["v*"] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + legal: + name: Legal checks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + fetch-depth: 0 + + - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3 + with: + version: 2026.7.5 + experimental: true + + - name: Check contribution sign-off + run: mise run signoff + + - name: Check licensing policy + run: mise run licenses diff --git a/Makefile b/Makefile index 8ae5937..c45d114 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ # Copyright (c) 2026 Nikolay Govorov # SPDX-License-Identifier: AGPL-3.0-or-later -CARGO_DENY_VERSION = ^0.19 CARGO_LLVM_COV_VERSION = ^0.8 -all: signoff fmt clippy test deps licenses +all: legal fmt clippy test + +.PHONY: legal +legal: signoff licenses .PHONY: signoff signoff: @@ -12,21 +14,18 @@ signoff: .PHONY: setup setup: - cargo install \ - cargo-deny@$(CARGO_DENY_VERSION) \ - cargo-llvm-cov@$(CARGO_LLVM_COV_VERSION) + cargo install cargo-llvm-cov@$(CARGO_LLVM_COV_VERSION) .PHONY: licenses licenses: - reuse lint + mise run licenses .PHONY: fmt fmt: cargo fmt --all --check .PHONY: deps -deps: - cargo deny check +deps: licenses .PHONY: clippy clippy: diff --git a/mise.toml b/mise.toml index 4107986..a38cdb0 100644 --- a/mise.toml +++ b/mise.toml @@ -9,5 +9,5 @@ experimental = true [task_config] dir = "{{cwd}}" includes = [ - "git::https://github.com/dimidiumlabs/infra.git//tasks?ref=22410a5dae5ff53b54d1666db5c6009229fbaaa5", + "git::https://github.com/dimidiumlabs/infra.git//tasks?ref=69a62b0217e237ffcd461192e4d128bd10f4d45c", ] |
