Improve tests for Maskinporten HTTP client and config #11
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Run on Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '~1.22' | |
- name: Setup golines | |
run: go install github.com/segmentio/golines@latest | |
- name: go mod tidy | |
run: go mod tidy | |
- name: Build | |
run: make | |
- name: Test | |
run: make test | |
- name: Lint | |
run: make lint | |
- name: Formatting | |
run: if [ "$(golines -m 120 --ignore-generated --dry-run . | wc -l)" -gt 0 ]; then exit 1; fi |