Compare commits

...

2 Commits

Author SHA1 Message Date
Faye Amacker
49b43cbd39
Update ci-go-cover.yml
Some checks failed
ci / Test on ${{matrix.os}} (macos-latest) (push) Has been cancelled
ci / Test on ${{matrix.os}} (ubuntu-latest) (push) Has been cancelled
cover ≥98% / Coverage (push) Has been cancelled
linters / Lint (push) Has been cancelled
Update CI to regenerate code coverage badge for old releases.
2023-06-25 13:38:34 -05:00
Faye Amacker
0dd8886f91
Update ci-go-cover.yml
Add workflow_dispatch to old branch.
2023-06-25 13:32:25 -05:00

View File

@ -15,17 +15,34 @@
# 2. Update README.md to use the new path to badge.svg because the path includes the workflow name.
name: cover ≥98%
on: [push]
# Remove default permissions.
permissions: {}
on:
workflow_dispatch:
pull_request:
push:
jobs:
# Verify minimum coverage is reached using `go test -short -cover` on latest-ubuntu with default version of Go.
# The grep expression can't be too strict, it needed to be relaxed to work with different versions of Go.
cover:
name: Coverage
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19
check-latest: true
- name: Install x448/float16
run: go get github.com/x448/float16@v0.8.4
- name: Go Coverage
run: |
go version