mirror of
https://github.com/status-im/eth-rpc-proxy.git
synced 2026-08-31 11:41:08 +00:00
65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
test-rpc-health-checker:
|
|
name: Run Tests (RPC Health Checker)
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '1.24'
|
|
cache: true
|
|
cache-dependency-path: rpc-health-checker/go.sum
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd rpc-health-checker
|
|
go mod download
|
|
|
|
- name: Run tests
|
|
id: tests
|
|
run: |
|
|
cd rpc-health-checker
|
|
go test -v -race ./...
|
|
|
|
test-go-proxy-cache:
|
|
name: Run Tests (Go Proxy Cache)
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '1.24'
|
|
cache: true
|
|
cache-dependency-path: go-proxy-cache/go.sum
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd go-proxy-cache
|
|
go mod download
|
|
|
|
- name: Run tests
|
|
id: tests
|
|
run: |
|
|
cd go-proxy-cache
|
|
go test -v -race ./... |