Plugins configuration #217
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: PR checks | |
on: | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
checks: | |
name: Checks | |
runs-on: self-hosted # ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- id: go-fixup | |
# Workaround for setup-go on self-hosted runner, without a $HOME | |
name: Go fixup | |
run: | | |
echo "GOMODCACHE=/opt/go-cache/mod" >> $GITHUB_ENV | |
echo "GOCACHE=/opt/go-cache/build" >> $GITHUB_ENV | |
echo "GOPATH=/opt/go" >> $GITHUB_ENV | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version-file: 'go.mod' | |
cache: false # does not help on self-hosted | |
- name: Run tests | |
run: make test | |
- name: Test build | |
run: make build | |
- name: Check dirty git | |
run: git diff --no-ext-diff --quiet | |
- name: Sanity check build | |
run: ./bin/ubercontroller -h | |
- name: Test build docs | |
run: make build-docs |