Add validation to models for new standard lib httpapi #109
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: | |
- main | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
jobs: | |
Test: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.23 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -qq -y libhdf5-dev | |
- name: Format | |
run: gofmt -d . | |
- name: Lint | |
run: go vet | |
- name: Test | |
run: go test -timeout 1m ./... |