-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.07 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: AK-Core Lint
on:
pull_request:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
shellcheck:
defaults:
run:
shell: bash
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v16
with:
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Run Shellcheck
run: |
nix profile install \
nixpkgs#autoconf \
nixpkgs#automake \
nixpkgs#libtool \
nixpkgs#shellcheck \
nixpkgs#gnumake \
nixpkgs#gawk \
nixpkgs#findutils \
nixpkgs#coreutils \
nixpkgs#gnused \
nixpkgs#file \
nixpkgs#bash \
;
./bootstrap.sh;
./configure --enable-shellcheck;
cd src/sh-scripts;
make check-local;