Skip to content

upgrade go version to 1.14 due to multipart.Reader.NextRawPart #3

upgrade go version to 1.14 due to multipart.Reader.NextRawPart

upgrade go version to 1.14 due to multipart.Reader.NextRawPart #3

Workflow file for this run

name: test
on: [push]
permissions:
contents: write
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: generate test coverage
run: go test ./... -coverprofile=./cover.out -covermode=atomic
- name: check test coverage
id: coverage
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
#local-prefix: github.com/org/project
threshold-file: 70
threshold-package: 70
threshold-total: 70
- name: make coverage badge
uses: action-badges/[email protected]
if: contains(fromJSON('["refs/heads/master", "refs/heads/main"]'), github.ref)
with:
label: coverage
message: ${{ steps.coverage.outputs.badge-text }}
message-color: ${{ steps.coverage.outputs.badge-color }}
file-name: coverage.svg
badge-branch: badges
github-token: "${{ secrets.GITHUB_TOKEN }}"