Skip to content

Commit

Permalink
Change directory to relayer before running unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesmartin committed Jul 18, 2022
1 parent c2e458e commit 30f1540
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/relay.yml
Expand Up @@ -18,9 +18,11 @@ jobs:
go-version: ${{ steps.tool-versions.outputs.golang_version }}
- name: Install Solana CLI
run: ./scripts/install-solana-ci.sh
- name: Change directory to relayer
run: cd ./relayer
- name: Build
run: go build -v ./relayer/pkg/...
run: go build -v ./pkg/...
- name: Test
run: go test ./relayer/pkg/... -v
run: go test ./pkg/... -v
- name: Test with the race detector enabled
run: go test ./relayer/pkg/... -v -race -count=10
run: go test ./pkg/... -v -race -count=10
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -71,8 +71,9 @@ build_local: build_js build_contracts_local cp_gauntlet_idl
build_staging: build_js build_contracts_staging cp_gauntlet_idl

test_relay_unit:
go build -v ./relayer/pkg/...
go test -v ./relayer/pkg/...
cd ./relayer
go build -v ./pkg/...
go test -v ./pkg/...

test_smoke:
SELECTED_NETWORKS=solana NETWORK_SETTINGS=$(shell pwd)/tests/e2e/networks.yaml \
Expand Down

0 comments on commit 30f1540

Please sign in to comment.