Merge remote-tracking branch 'origin/main' into exec #181
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coverage | |
on: [push, pull_request] | |
jobs: | |
coverage: | |
strategy: | |
matrix: | |
go-version: [^1] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
GO111MODULE: "on" | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- run: | | |
git config --global url."https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/charmbracelet".insteadOf "https://github.com/charmbracelet" | |
- 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 |