iocaine/.forgejo/workflows/lint.yaml

29 lines
576 B
YAML
Raw Normal View History

## 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