-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.01 KB
/
test-1_23.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
37
38
name: Test-1_23
on:
push:
paths:
- "**.go"
- "**.md"
- "**.yaml"
- "**.mod"
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Use golang
uses: actions/setup-go@v5
with:
go-version: "1.23.x"
# noinlineによるテスト実行
# https://github.com/poteto-go/poteto/issues/169
- name: Test
run: go test ./... -coverprofile cover.out.tmp -bench . -benchtime 100000x -gcflags=all=-l
- name: remove ruleguard path
run: cat cover.out.tmp | grep -v "github.com/poteto-go/poteto/rules" > coverage.out.tmp
- name: remove not constant path
run: cat coverage.out.tmp | grep -v "github.com/poteto-go/poteto/constant" > coverage.txt
- name: upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}