unify form of set and value receiver functions (#75) #30
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: Default | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build-pages: | |
name: Build Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: .go-version | |
cache: true | |
- name: Download dependencies | |
run: go mod download | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: 1.10.* | |
terraform_wrapper: false | |
- name: Setup external dependencies | |
run: make deps | |
- name: Acceptance Coverage | |
run: make test/acc | |
- name: Coverage badge and html | |
run: ./.github/scripts/cov-badge-and-html.sh | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v3 | |
deploy-pages: | |
name: Deploy Pages | |
runs-on: ubuntu-latest | |
needs: build-pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |