-
Notifications
You must be signed in to change notification settings - Fork 65
39 lines (33 loc) · 924 Bytes
/
test.yml
File metadata and controls
39 lines (33 loc) · 924 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: test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
run_tests:
runs-on: ubuntu-latest
permissions:
contents: read # for GITHUB_TOKEN
steps:
- name: clone repo
uses: actions/checkout@v4.3.0
- name: download and install
uses: actions/setup-go@v5
with:
go-version: '1.26.1'
- name: install protoc (protobuf)
uses: arduino/setup-protoc@v3
with:
version: "34.0"
include-pre-releases: false
repo-token: ${{ secrets.GITHUB_TOKEN }}
- 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 ./...