Skip to content

Merge pull request #4 from abema/update-go #16

Merge pull request #4 from abema/update-go

Merge pull request #4 from abema/update-go #16

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
go-version: ["1.22", "1.23", ">=1.24"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # ratchet:actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- run: go vet ./...
- run: go test "-coverprofile=coverage.txt" -covermode=atomic ./...
- name: Upload Coverage Report
if: ${{ github.event_name == 'push' && matrix.go-version == '1.23' }}
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile=coverage.txt