| 1 |
name: CI |
| 2 |
on: [push, pull_request] |
| 3 |
|
| 4 |
env: |
| 5 |
GODEBUG: x509sha1=1 |
| 6 |
|
| 7 |
jobs: |
| 8 |
test: |
| 9 |
name: Test |
| 10 |
strategy: |
| 11 |
matrix: |
| 12 |
go: ['1.13', '1.14', '1.15', '1.16', '1.17', '1.18', '1.19'] |
| 13 |
runs-on: ubuntu-latest |
| 14 |
steps: |
| 15 |
- uses: actions/checkout@v2 |
| 16 |
with: |
| 17 |
fetch-depth: 0 |
| 18 |
- uses: actions/setup-go@v2 |
| 19 |
with: |
| 20 |
go-version: ${{ matrix.go }} |
| 21 |
stable: false |
| 22 |
- name: Test |
| 23 |
env: |
| 24 |
# set this environment variable to true so tests can be run with the |
| 25 |
# sha1 algorithm. Without this set, tests fail because Go notes the |
| 26 |
# SHA1 algorithm as insecure |
| 27 |
GODEBUG: x509sha1=1 |
| 28 |
run: go vet . && go build . && go test -count=1 -covermode=count -coverprofile=coverage.out . |