mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 20:56:17 +00:00
29 lines
698 B
YAML
29 lines
698 B
YAML
name: coverage
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
coverage:
|
|
strategy:
|
|
matrix:
|
|
go-version: [^1.22]
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
GO111MODULE: "on"
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- 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
|