-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (39 loc) · 1.03 KB
/
push-check.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
39
40
41
42
43
44
45
46
47
48
49
50
name: Push Check
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
services:
nacos:
image: 'nacos/nacos-server:2.0.3'
ports:
- '8848:8848'
- '9848:9848'
env:
MODE: standalone
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Check License Header
uses: apache/skywalking-eyes/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: typos-action
uses: crate-ci/[email protected]
- name: Benchmark
run: go test -bench=. -benchmem -run=none ./...
- name: Unit Test
run: make test
env:
serverAddr: 127.0.0.1
serverPort: 8848
namespace: public