Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: verify in smaller steps, verify binary builds. #364

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/project-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,38 @@ jobs:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5

- name: Install golang toolchain
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: make verify
- name: Verify dependencies
run: |
make verify-godeps

- name: Verify formatting
run: |
make verify-fmt

- name: Verify generated assets
run: |
make verify
make verify-generate

- name: Build docs
- name: Verify binary builds
run: |
make site-build
make clean-html
make verify-build

- name: Install gh-pages build dependencies
run: |
pip3 install --user -r docs/requirements.txt
echo "`python3 -m site --user-base`/bin" >> $GITHUB_PATH

- name: Verify update of gh-pages
- name: Verify documentation / update of gh-pages
run: |
git config user.name "Github"
klihub marked this conversation as resolved.
Show resolved Hide resolved
git config user.email "[email protected]"
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ allclean: clean clean-cache

test: test-gopkgs

verify: verify-godeps verify-fmt verify-generate
verify: verify-godeps verify-fmt verify-generate verify-build verify-docs

#
# build targets
Expand Down Expand Up @@ -397,6 +397,10 @@ verify-generate: generate
exit "$$ec"; \
fi

verify-build: build

verify-docs: site-build clean-html

#
# targets for installing dependencies
#
Expand Down