Skip to content

Commit 4cc7e00

Browse files
authored
refine github workflows (#331)
* 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]>
1 parent 45cc82c commit 4cc7e00

File tree

4 files changed

+24
-71
lines changed

4 files changed

+24
-71
lines changed

.github/workflows/golangci-lint.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: golangci-lint
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
branches:
8+
- main
9+
pull_request:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
golangci:
16+
name: lint
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: golangci-lint
21+
uses: golangci/golangci-lint-action@v6
22+
with:
23+
version: v1.57.2
24+
args: --timeout=2m

.github/workflows/nix.yml

-36
This file was deleted.

flake.lock

-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

-14
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
};
2323
flake-compat.url = "github:nix-community/flake-compat";
2424
nix-filter.url = "github:numtide/nix-filter";
25-
nix-github-actions = {
26-
url = "github:nix-community/nix-github-actions";
27-
inputs.nixpkgs.follows = "nixpkgs";
28-
};
2925
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
3026
treefmt-nix = {
3127
url = "github:numtide/treefmt-nix";
@@ -42,15 +38,5 @@
4238
nixpkgs.config = {
4339
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["terraform"];
4440
};
45-
}
46-
// {
47-
githubActions = inputs.nix-github-actions.lib.mkGithubMatrix {
48-
checks =
49-
lib.getAttrs [
50-
"x86_64-linux"
51-
"x86_64-darwin"
52-
]
53-
inputs.self.checks;
54-
};
5541
};
5642
}

0 commit comments

Comments
 (0)