-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1003 Bytes
/
ci.yml
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: CI
on:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.20' ]
steps:
- uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Prepare
run: |
make prepare
go install github.com/jstemmer/go-junit-report@latest
- name: Test
run: |
go test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml
- uses: test-summary/action@v2
if: always()
with:
paths: report.xml
- uses: reviewdog/action-staticcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
level: warning
filter_mode: diff_context
fail_on_error: false
- run: gofmt -w -s .
- uses: reviewdog/action-suggester@v1
with:
tool_name: gofmt