-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (42 loc) · 1.21 KB
/
pull-verify-packages-config.yaml
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
44
45
46
47
48
49
name: Pull test for packages cfg
on:
pull_request:
branches:
- main
paths:
- "packages/**"
jobs:
test-packages-cfg:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Install tools
run: |
# install gomplate
git clone https://github.com/hairyhenderson/gomplate && \
pushd gomplate && \
GOBIN=/usr/local/bin go install ./cmd/gomplate &&
popd &&
rm -rf gomplate && \
gomplate --version
# install shelldoc to check the README.md
git clone https://github.com/endocode/shelldoc && \
pushd shelldoc && \
GOBIN=/usr/local/bin go install ./cmd/shelldoc &&
popd &&
rm -rf shelldoc && \
# we need yq and jq.
yq --version
jq --version
- name: Checkout code
uses: actions/checkout@v4
# - name: Verify the README.md
# run: |
# shelldoc run --shell `which bash` packages/README.md
- name: Test
run: |
chmod +x packages/scripts/ci.sh
./packages/scripts/ci.sh