Skip to content

Commit

Permalink
refine github workflows (#331)
Browse files Browse the repository at this point in the history
* ci: add golangci-lint workflow

It doesn't conform to the treefmt spec so we run it here to catch any issues.

* ci: switch to buildbot

---------

Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee authored Jul 3, 2024
1 parent 45cc82c commit 4cc7e00
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 71 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: golangci-lint

on:
push:
tags:
- v*
branches:
- main
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.57.2
args: --timeout=2m
36 changes: 0 additions & 36 deletions .github/workflows/nix.yml

This file was deleted.

21 changes: 0 additions & 21 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
};
flake-compat.url = "github:nix-community/flake-compat";
nix-filter.url = "github:numtide/nix-filter";
nix-github-actions = {
url = "github:nix-community/nix-github-actions";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
Expand All @@ -42,15 +38,5 @@
nixpkgs.config = {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["terraform"];
};
}
// {
githubActions = inputs.nix-github-actions.lib.mkGithubMatrix {
checks =
lib.getAttrs [
"x86_64-linux"
"x86_64-darwin"
]
inputs.self.checks;
};
};
}

0 comments on commit 4cc7e00

Please sign in to comment.