-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (40 loc) · 1.47 KB
/
inshpect.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: Inshepct
on:
pull_request:
branches:
- master
jobs:
doc:
runs-on: ubuntu-22.04
steps:
- name: Install tools
run: |
set -x
sudo apt-get update
sudo apt-get install -y fd-find
wget -q https://github.com/TomWright/dasel/releases/download/v2.7.0/dasel_linux_amd64 -O /tmp/dasel
sudo mv /tmp/dasel /usr/local/bin/dasel
sudo chmod +x /usr/local/bin/dasel
pushd /tmp
curl --output inshpect \
--location https://raw.githubusercontent.com/msimberg/inshpect/d31ba8ed7e636c57cb9085ed3a8450d998e6b8a5/inshpect
sha256sum inshpect
echo "4b891a178fa99ac800b9b92acc0596d72f640ca1ae6de7f35ac4b3785dcd7af9 inshpect" | sha256sum --check
chmod +x inshpect
mv inshpect /usr/local/bin
popd
pushd /tmp
curl --output ripgrep.tar.gz \
--location https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz
echo "ee4e0751ab108b6da4f47c52da187d5177dc371f0f512a7caaec5434e711c091 ripgrep.tar.gz" | sha256sum --check
tar --extract --strip-components 1 --file ripgrep.tar.gz
mv rg /usr/local/bin
popd
- name: Checkout
uses: actions/checkout@v4
- name: Inshpect
if: always()
run: |
export INSHPECT_NUMTHREADS=4
export INSHPECT_FD=fdfind
inshpect . .inshpect.toml