cli/list: print listings as tables #869
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
"on": | |
- push | |
env: | |
HOF_TELEMETRY_DISABLED: "1" | |
jobs: | |
docs: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
steps: | |
- run: |- | |
mkdir tmp | |
cd tmp | |
wget https://github.com/cue-lang/cue/releases/download/v0.8.2/cue_v0.8.2_linux_amd64.tar.gz -O cue.tar.gz | |
tar -xf cue.tar.gz | |
sudo mv cue /usr/local/bin/cue | |
cd ../ | |
rm -rf tmp | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Vars | |
id: vars | |
run: |- | |
SHA=${GITHUB_SHA::8} | |
TAG=$(git tag --points-at HEAD) | |
echo "HOF_FMT_VERSION=${TAG}" >> $GITHUB_ENV | |
if [ -z $TAG ]; then | |
TAG=${SHA} | |
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: |- | |
hof fmt start [email protected] | |
cd docs | |
hof mod link | |
make tools | |
make deps | |
- name: Test | |
run: |- | |
hof fmt start [email protected] | |
cd docs | |
make gen | |
make test | |
make run & | |
make broken-link | |
strategy: {} | |
services: {} |