Return 422 on Irrelevant Requests #12
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: Go Test & Build | |
on: [push] | |
jobs: | |
go-test-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Install Dependencies | |
run: go install ./ | |
- name: Run Go Tests | |
run: go test -v ./ | |
- name: Run Go Server Test | |
run: go test -v ./cmd/... -args --hostname="http://0.0.0.0:8080" | |
- name: Run Go Vet | |
run: go vet -v ./ | |
- name: Build wrlookup | |
run: go build -v -o wrlookup ./cmd/wrlookup/main.go | |
- name: Build wrserver | |
run: go build -v -o wrserver ./cmd/wrserver/main.go |