-
Notifications
You must be signed in to change notification settings - Fork 328
52 lines (44 loc) · 1.14 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: ci
on:
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pull-requests: read
packages: write
env:
GO111MODULE: on
jobs:
ci:
name: ci flow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# with:
# submodules: recursive
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.4
cache: false
- name: Build Go
run: go build ./...
- name: Run Test
id: unittest
shell: bash
run: |
go install github.com/dave/courtney@latest
go mod tidy
go vet $(go list ./... | grep -v /vendor/ | grep -v /explorer/idl/ | grep -v /api/idl/)
#go get -u github.com/dave/courtney@038390a12707e2d91979d2ca77a71597f4afe400
./go.test.sh
#make test
go test -run=XXX -bench=. $(go list ./crypto)
bash <(curl -s https://codecov.io/bash)
- name: Make Minicluster
if: github.event.pull_request.merged == true
id: minicluster
shell: bash
run: |
make minicluster