chore: generate #3406
This file contains hidden or 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: Main | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| pull_request: | |
| permissions: {} | |
| jobs: | |
| main: | |
| name: Main Process | |
| runs-on: ubuntu-latest | |
| env: | |
| GO_VERSION: stable | |
| GOLANGCI_LINT_VERSION: v2.11 | |
| HUGO_VERSION: 0.157.0 | |
| CGO_ENABLED: 0 | |
| LEGO_E2E_TESTS: CI | |
| MEMCACHED_HOSTS: localhost:11211 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Check and get dependencies | |
| run: | | |
| go mod tidy --diff | |
| - name: Generate and Check generated elements | |
| run: | | |
| make generate | |
| git diff --exit-code | |
| - uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: ${{ env.GOLANGCI_LINT_VERSION }} | |
| install-only: true | |
| - name: Install Pebble | |
| run: go install github.com/letsencrypt/pebble/v2/cmd/[email protected] | |
| - name: Install challtestsrv | |
| run: go install github.com/letsencrypt/pebble/v2/cmd/[email protected] | |
| - name: Set up a Memcached server | |
| run: docker run -d --rm -p 11211:11211 memcached:1.6-alpine | |
| - name: Make | |
| run: | | |
| make | |
| make clean | |
| - name: Install Hugo | |
| run: | | |
| wget -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-amd64.deb | |
| sudo dpkg -i /tmp/hugo.deb | |
| - name: Build Documentation | |
| run: make docs-build |