Skip to content

Update sonar.yml

Update sonar.yml #248

Workflow file for this run

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.25.6'
- name: install protoc (protobuf)
uses: arduino/setup-protoc@v3
with:
version: "33.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 ./...