Skip to content

适配formData

适配formData #8

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21'
- name: Install dependencies
run: |
go mod tidy
go get -v ./...
- name: Run tests
run: |
go test -v -coverprofile=coverage.out ./...
go tool cover -func=coverage.out
- name: Upload coverage to Coveralls
run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile=coverage.out -service=github -repotoken ${{ secrets.COVERALLS_REPO_TOKEN }}