Skip to content

remove GATEWAY_CONFIG env test from main_test.go #1445

remove GATEWAY_CONFIG env test from main_test.go

remove GATEWAY_CONFIG env test from main_test.go #1445

name: PATH Lint and Unit Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
run-linter:
name: Run linter
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Setup Git Authentication
run: |
git config --global url."https://${{ github.token }}:[email protected]/".insteadOf "https://github.com/"
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.1
args: --timeout 20m --verbose
run-unit-tests:
name: Run unit tests
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Setup Git Authentication
run: |
git config --global url."https://${{ github.token }}:[email protected]/".insteadOf "https://github.com/"
- name: Run unit tests without CGO
run: CGO_ENABLED=0 go test ./... -short
- name: Run unit tests with CGO
run: CGO_ENABLED=1 go test -tags "ethereum_secp256k1" ./... -short