-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (41 loc) · 1.23 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
name: Pull test for packages cfg
on:
pull_request:
branches:
- main
paths:
- "packages/**"
jobs:
test-packages-cfg:
runs-on: ubuntu-24.04
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Install tools
run: |
# install gomplate
GOBIN=/usr/local/bin go install github.com/hairyhenderson/gomplate/v4/cmd/[email protected]
gomplate --version
# install crane
GOBIN=/usr/local/bin go install github.com/google/go-containerregistry/cmd/[email protected]
crane 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 .github/scripts/ci.sh
./.github/scripts/ci.sh