- Wire OracleKeeper into app.go via depinject - Add oracle to app_config.go (BeginBlockers, EndBlockers, InitGenesis) - Add oracle to governance AllowedModules/AllowedParams - Update go-unit.yml and integration-test.yml with oracle/governance steps - go build ./... and go vet ./... pass clean Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
749 B
YAML
30 lines
749 B
YAML
name: Unit tests
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
strategy:
|
|
matrix:
|
|
go-version: ["1.24"]
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
check-latest: true
|
|
- name: Run tests with race detector
|
|
run: go test -race -timeout 20m ./...
|
|
- name: Run oracle module tests
|
|
run: go test -race -v -timeout 5m ./x/oracle/...
|
|
- name: Run governance module tests
|
|
run: go test -race -v -timeout 5m ./x/governance/...
|
|
- name: Run vet
|
|
run: go vet ./...
|