Skip to content

Commit

Permalink
hof/docs: work on some ci
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Feb 26, 2023
1 parent 4f8f8bc commit bea98af
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,23 @@ jobs:
fi
echo "HOF_SHA=${SHA}" >> $GITHUB_ENV
echo "HOF_TAG=${TAG}" >> $GITHUB_ENV
- name: Fetch Go deps
run: go mod download
- name: Build hof
run: go install ./cmd/hof
- name: Setup
run: "cd docs\nmake first "
- name: Test
run: make test
run: |-
cd docs
make test
- name: Build
run: make build
run: |-
cd docs
make build
- name: Check
run: |-
cd docs
make run &
make broken-link
strategy: {}
Expand Down
8 changes: 8 additions & 0 deletions ci/gha/docs.cue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ ghacue.#Workflow & {
common.Steps.go.cache,
common.Steps.checkout,
common.Steps.vars,
common.Steps.go.deps,
{
name: "Build hof"
run: "go install ./cmd/hof"
},
{
name: "Setup"
run: """
Expand All @@ -32,19 +37,22 @@ ghacue.#Workflow & {
{
name: "Test"
run: """
cd docs
make test
"""
},
{
name: "Build"
run: """
cd docs
make build
"""
},

{
name: "Check"
run: """
cd docs
make run &
make broken-link
"""
Expand Down
5 changes: 3 additions & 2 deletions docs/hack/make/deps.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ deps:
npm install
npm install broken-link-checker -g
mkdir tmp
pushd tmp

cd tmp
wget https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VER)/hugo_extended_$(HUGO_VER)_Linux-64bit.tar.gz
tar -xf hugo.tar.gz
chmod +x hugo
sudo mv hugo /usr/local/bin/hugo
popd tmp
cd ../
rm -rf tmp


Expand Down

0 comments on commit bea98af

Please sign in to comment.