-
Notifications
You must be signed in to change notification settings - Fork 1
116 lines (101 loc) · 2.88 KB
/
Copy pathgenerate-check.yml
File metadata and controls
116 lines (101 loc) · 2.88 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Go generate & lint
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25.8"
- name: Run generate
run: make generate
- name: Fail if generate produced a diff
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "::error::make generate produced uncommitted changes. Run 'make generate' and commit the result."
git status --porcelain
git diff
exit 1
fi
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25.8"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.11.2
args: --timeout=5m
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25.8"
- name: Run tests with coverage
run: make coverage
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out
test-parity:
#runs-on: ubuntu-latest
#steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - name: Set up Go
# uses: actions/setup-go@v5
# with:
# go-version: "1.25.8"
# - name: Run web3signer docker container
# run: cd test/web3signer-parity && make ci
# test-parity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25.8"
- name: Start web3signer (parity)
working-directory: test/web3signer-parity
run: |
docker run -d \
--network host \
--name web3signer-parity \
-v "$PWD/key_config.yaml":/app/keys/key_config.yaml \
-v "$PWD/config.yaml":/app/config.yaml \
consensys/web3signer:develop \
--config-file /app/config.yaml \
eth2
- name: Wait until web3signer is healthy
working-directory: test/web3signer-parity
run: ./wait-until-healthy.sh
- name: Run parity tests
run: go test ./test/web3signer-parity/...
- name: Dump web3signer logs
if: always()
run: docker logs web3signer-parity || true
- name: Stop web3signer
if: always()
run: docker stop web3signer-parity || true