-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 865 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
# go-version: ['oldstable', 'stable', '1.23.0-rc.2']
go-version: ["oldstable", "stable"]
env:
VERBOSE: 1
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install tparse
run: go install github.com/mfridman/tparse@main
- name: Build
run: go build -v .
- name: Run tests
shell: bash
run: |
go test $(go list ./... | grep -v 'examples') -count=1 -v -json -cover \
| tparse -all -follow -sort=elapsed -trimpath=auto