mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
24 lines
593 B
YAML
24 lines
593 B
YAML
name: coverage
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
coverage:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GO111MODULE: "on"
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: stable
|
|
|
|
- name: Coverage
|
|
env:
|
|
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
go test -race -covermode atomic -coverprofile=profile.cov ./...
|
|
go install github.com/mattn/goveralls@latest
|
|
goveralls -coverprofile=profile.cov -service=github
|