Add "www" prefix (#33) #3
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: Codegen | |
on: [push] | |
jobs: | |
build: | |
name: Run | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Get Go version from go.mod | |
id: go-version | |
run: echo "version=$(./scripts/extract-go-version.sh)" >> $GITHUB_OUTPUT | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ steps.go-version.outputs.version }} | |
- name: Install deepmap/oapi-codegen | |
run: go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest | |
- name: Run go generate | |
run: make generate | |
- name: Check for changes | |
run: | | |
if ! git diff --exit-code; then | |
echo "Changes were detected after running go generate."Pj | |
exit 1 | |
fi |