-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 812 Bytes
/
test.yml
File metadata and controls
39 lines (30 loc) · 812 Bytes
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
37
38
39
name: Run tests and upload coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
env:
GOEXPERIMENT: jsonv2
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Print All environment variables
run: env | sort
- name: Set up Go
uses: actions/setup-go@v6.3.0
with:
go-version: '1.26'
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test -count=1 -coverprofile=coverage.txt ./...
- name: Upload results to Codecov
uses: codecov/codecov-action@v6.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: go-spring/stdlib