aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat
-rw-r--r--.github/workflows/build.yml6+0 −6
-rw-r--r--.github/workflows/legal.yml34+34 −0
-rw-r--r--Taskfile.yml8+6 −2
-rw-r--r--mise.toml2+1 −1
4 files changed, 41 insertions, 9 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b3f9ff1..f7e5042 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -25,11 +25,6 @@ jobs:
with:
fetch-depth: 0
- - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
- with:
- version: 2026.7.5
- experimental: true
-
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
@@ -45,7 +40,6 @@ jobs:
sudo apt update && sudo apt install nfpm apt-utils rclone createrepo-c
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.67.0/buf-$(uname -s)-$(uname -m)" -o /usr/local/bin/buf && chmod +x /usr/local/bin/buf
- pipx install reuse
- name: Build and package
run: task package GIT_REF=${{ github.ref }} GPG_KEY_ID=${{ vars.GPG_KEY_ID }}
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/Taskfile.yml b/Taskfile.yml
index 522f707..ae4d8bf 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -506,6 +506,12 @@ tasks:
cmds:
- mise run signoff
+ legal:
+ desc: Verify contribution and licensing policy
+ cmds:
+ - task: signoff
+ - mise run licenses
+
web:lint:
desc: Lint and check the frontend
dir: cmd/mirum-server/web
@@ -527,10 +533,8 @@ tasks:
desc: Run static checks
deps: [go:lint, web:lint]
cmds:
- - task: signoff
- task: go:lint
- task: web:lint
- - reuse lint
test:
desc: Run all tests
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",
]