Skip to content

Changed badge url

Changed badge url #152

Workflow file for this run

name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
strategy:
matrix:
vm-os: [ubuntu-latest, windows-latest]
go-version: [ 1.16, 1.19 ]
runs-on: ${{ matrix.vm-os }}
env:
GO111MODULE: on
GOPROXY: https://goproxy.cn
steps:
- name: Install go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
uses: actions/checkout@v3
- name: Test and create coverage file
run: go test -coverprofile='coverage.txt' -covermode=atomic
- name: Upload coverage file to codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}