Merge pull request #27 from eyalzek/feat/update-porkbun-hostname #74
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: Build & test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '>=1.22.0' | |
- name: Install mockery | |
run: go install github.com/vektra/mockery/[email protected] | |
- name: Generate mocks | |
run: mockery | |
- name: Build | |
run: go build -v ./... | |
- name: Test with the Go CLI | |
run: go test ./... -coverprofile="cover.out" -covermode=atomic -coverpkg=./... | |
- name: check test coverage | |
uses: vladopajic/go-test-coverage@v2 | |
with: | |
config: ./.testcoverage.yml |