Skip to content

Commit 14202ab

Browse files
committed
update ci
1 parent 67b006a commit 14202ab

2 files changed

Lines changed: 45 additions & 60 deletions

File tree

.github/workflows/installer-go.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/linting.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Linting
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "Linux/**"
7+
- ".github/dependabot.yml"
8+
- ".github/workflows/linting.yml"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- "Linux/**"
14+
- ".github/dependabot.yml"
15+
- ".github/workflows/linting.yml"
16+
17+
jobs:
18+
linting:
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
26+
27+
- name: Set up Go
28+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
29+
with:
30+
go-version-file: Linux/installer/go.mod
31+
cache-dependency-path: Linux/installer/go.sum
32+
33+
- name: Install Nix
34+
uses: cachix/install-nix-action@ab739621df7a23f52766f9ccc97f38da6b7af14f # v31.10.5
35+
with:
36+
extra_nix_config: |
37+
experimental-features = nix-command flakes
38+
39+
- name: Install shell-check toolchain (fish, shellcheck, jq)
40+
run: |
41+
sudo apt-get update
42+
sudo apt-get install -y --no-install-recommends fish shellcheck jq
43+
44+
- name: Run linting + tests
45+
run: make -C Linux all

0 commit comments

Comments
 (0)