-
Notifications
You must be signed in to change notification settings - Fork 492
56 lines (48 loc) · 1.46 KB
/
test.yaml
File metadata and controls
56 lines (48 loc) · 1.46 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
name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
lint-and-check:
runs-on: ubuntu-latest
steps:
# Specification
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ^1.26
id: go
- name: Build the spec
run: make build
# speccheck
- name: Run speccheck
run: make test
# check test filling
- name: Fill tests
working-directory: ./tools
run: make fill
- name: Fail if any files are untracked or have changes
# geth outputs non-deterministic responses for two tests-
# specifically storageKeys arrays in the responses.
# Filter them from the diff check until fixed.
run: |
STATUS=$(git status --porcelain . \
':!tests/eth_createAccessList/create-al-contract.io' \
':!tests/eth_createAccessList/create-al-contract-eip1559.io')
if [ -n "$STATUS" ]; then
echo "Unexpected changes after test filling:"
echo "$STATUS"
git diff --stat
exit 1
fi
lint-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ^1.24
id: go
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Lint tools
working-directory: ./tools
run: make lint