okami.mom/ultraviolet
git clone https://git.nkp.pet/okami.mom/ultraviolet
19049f2
main
1name : coverage 2# push is scoped to main so a push to a PR branch fires only the 3# pull_request run, not both. Merges to main still run via push. 4on : 5push : 6branches : [ main ] 7pull_request : 8 9jobs : 10coverage : 11strategy : 12matrix : 13go-version : [ ^1 ] 14os : [ ubuntu-latest , windows-latest , macos-latest ] 15runs-on : ${{ matrix.os }} 16env : 17GO111MODULE : "on" 18steps : 19- name : Install Go 20uses : actions/setup-go@v7 21with : 22go-version : ${{ matrix.go-version }} 23 24- name : Checkout code 25uses : actions/checkout@v7 26 27- name : Coverage 28run : | 29go test -race -covermode=atomic -coverprofile='coverage.txt' ./... 30 31- uses : codecov/codecov-action@v7 32with : 33file : ./coverage.txt 34token : ${{ secrets.CODECOV_TOKEN }}