mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-23 18:55:56 +02:00
ci: added treefmt workflow to gha and removed from buildbot
This commit is contained in:
parent
e1e4bb83f1
commit
cfdbf72664
2 changed files with 21 additions and 4 deletions
21
.github/workflows/lint.yml
vendored
Normal file
21
.github/workflows/lint.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.svg"
|
||||
- ".gitignore"
|
||||
- "LICENSE"
|
||||
- "flake.lock"
|
||||
|
||||
jobs:
|
||||
treefmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v31
|
||||
- name: Run treefmt check
|
||||
run: nix build .#checks.x86_64-linux.treefmt --accept-flake-config
|
|
@ -7,10 +7,6 @@
|
|||
perSystem =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
ci.buildbot = {
|
||||
inherit (config.checks) treefmt;
|
||||
};
|
||||
|
||||
treefmt.config = {
|
||||
projectRootFile = "flake.nix";
|
||||
flakeCheck = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue