Skip to content

Commit

Permalink
Use make (#9687)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra authored Jun 21, 2023
1 parent bf4f2cb commit 5fc6ea0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions integration-tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ install_gotestfmt:
build_test_image:
./scripts/buildTestImage $(tag) $(base_tag) "$(suite)" $(push)

## Test Runner
.PHONY: run
run: # Need to set network first in case it's unset. Doesn't matter for the runner
SELECTED_NETWORKS="SIMULATED" go run .

## All commands will use 16 threads to run tests in parallel. To change this, use -test.parallel n

# Smoke
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ If you're making changes to chainlink code, or just want to run some tests witho
1. [Install Go](https://go.dev/doc/install)
2. [Install GitHub CLI](https://cli.github.com/)
3. Authenticate with GitHub CLI: `gh auth login`
4. `go run .`
4. `make run`
5. Follow the setup wizard and watch your tests run in the GitHub Action.
5 changes: 0 additions & 5 deletions integration-tests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"os"

gh "github.com/cli/go-gh/v2"
)
Expand Down Expand Up @@ -31,10 +30,6 @@ var (
testDirectories = []string{helpText, "smoke", "soak", "performance", "reorg", "chaos", "benchmark"}
)

func init() {
os.Setenv("SELECTED_NETWORKS", "SIMULATED") // We'll check for this on start and fail if it ain't there
}

func main() {
// This can take a while to retrieve, start it at the beginning asynchronously
branchesAndTags, branchesAndTagsErr := make(chan []string, 1), make(chan error, 1)
Expand Down

0 comments on commit 5fc6ea0

Please sign in to comment.