iocaine/.forgejo/workflows/lint.yaml
Gergely Nagy 6099ba6f64
Some checks failed
documentation / documentation (push) Waiting to run
documentation / notification (push) Blocked by required conditions
lint / linting (push) Waiting to run
build / build (push) Has been cancelled
build / clippy (push) Has been cancelled
ci: Don't build if there are no code changes
Reconfigured the build & lint workflows, so that the source is only
compiled if there are changes committed to files that might alter the
output.

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-01-25 11:54:35 +01:00

28 lines
576 B
YAML

## SPDX-FileCopyrightText: 2025 Gergely Nagy
## SPDX-FileContributor: Gergely Nagy
##
## SPDX-License-Identifier: MIT
name: lint
on: [ push ]
jobs:
linting:
runs-on: nixos-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup magic attic cache
uses: actions/magic-attic-cache@main
with:
ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}
- name: license check
run: reuse lint
- name: formatting
uses: actions/nix/develop@main
with:
run: treefmt --fail-on-change