| 1 |
name: CI |
| 2 |
on: |
| 3 |
push: |
| 4 |
tags-ignore: |
| 5 |
- '**' |
| 6 |
branches: |
| 7 |
- main |
| 8 |
pull_request: |
| 9 |
types: |
| 10 |
- opened |
| 11 |
- synchronize |
| 12 |
|
| 13 |
concurrency: |
| 14 |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 15 |
cancel-in-progress: true |
| 16 |
|
| 17 |
jobs: |
| 18 |
test: |
| 19 |
name: Test |
| 20 |
strategy: |
| 21 |
fail-fast: false |
| 22 |
matrix: |
| 23 |
go: ['1.14', '1.15', '1.16', '1.21', '1.22', '1.23'] |
| 24 |
runs-on: ubuntu-latest |
| 25 |
steps: |
| 26 |
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 |
| 27 |
with: |
| 28 |
fetch-depth: 0 |
| 29 |
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e |
| 30 |
with: |
| 31 |
go-version: ${{ matrix.go }} |
| 32 |
- name: Test |
| 33 |
run: go vet . && go build . && go test -count=1 -covermode=count -coverprofile=coverage.out . |
| 34 |
env: |
| 35 |
GODEBUG: x509sha1=1 |