-
Notifications
You must be signed in to change notification settings - Fork 65
39 lines (32 loc) · 872 Bytes
/
test.yml
File metadata and controls
39 lines (32 loc) · 872 Bytes
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
name: tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master", "dev" ]
workflow_dispatch:
env:
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: warn
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: clone repo
uses: actions/checkout@v3
- name: download and install
uses: actions/setup-go@v5
with:
go-version: '1.24.5'
- name: install protoc (protobuf)
uses: arduino/setup-protoc@v3
with:
version: "29.3"
include-pre-releases: false
- name: chmod to allow run script
run: chmod +x ./scripts/install_deps
- name: install dependencies
run: ./scripts/install_deps
- name: go tests
env:
SNET_ETHEREUM_JSON_RPC_HTTP_ENDPOINT: ${{secrets.ETH_JSON_HTTP_ENDPOINT}}
run: go test -v ./...