get form tag from form tag first, if empty, get from json tag instead #923
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test $(go list ./... | grep -v 'ddl\|mock\|serversets\|gorm_gen\|cmd') -coverprofile=coverage.out -covermode=atomic | |
- name: Upload coverage to Codecov | |
run: bash <(curl -s https://codecov.io/bash) |