mirror of
https://git.madhouse-project.org/algernon/iocaine.git
synced 2025-02-13 05:06:19 +01:00
44 lines
932 B
YAML
44 lines
932 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
|
|
|
|
clippy:
|
|
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: clippy
|
|
uses: actions/nix/develop@main
|
|
with:
|
|
run: cargo clippy
|