diff --git a/.circleci/config.yml b/.circleci/config.yml index 81542f0ad28f..1402c1326e03 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -858,6 +858,10 @@ jobs: description: Uses contract artifacts type: boolean default: false + test_directory: + description: Test directory + type: string + default: "./..." machine: image: <> # only used to enable codecov. resource_class: xlarge @@ -895,7 +899,7 @@ jobs: --jsonfile=/tmp/testlogs/log.json \ -- -parallel=8 \ -coverpkg=github.com/ethereum-optimism/optimism/... \ - -coverprofile=coverage.out ./... + -coverprofile=coverage.out <> working_directory: <> - store_test_results: path: /tmp/test-results @@ -1664,9 +1668,13 @@ workflows: name: op-batcher-tests module: op-batcher requires: ["go-mod-download"] - - go-test-kurtosis: + - go-test: name: op-chain-ops-tests module: op-chain-ops + - go-test-kurtosis: + name: op-chain-ops-integration + module: op-chain-ops + test_directory: ./deployer/integration_test uses_artifacts: true requires: ["contracts-bedrock-build"] - go-test: diff --git a/op-chain-ops/deployer/apply_test.go b/op-chain-ops/deployer/integration_test/apply_test.go similarity index 96% rename from op-chain-ops/deployer/apply_test.go rename to op-chain-ops/deployer/integration_test/apply_test.go index 68a500b969de..9f3c3d62263c 100644 --- a/op-chain-ops/deployer/apply_test.go +++ b/op-chain-ops/deployer/integration_test/apply_test.go @@ -1,4 +1,4 @@ -package deployer +package integration_test import ( "context" @@ -10,6 +10,8 @@ import ( "path" "testing" + "github.com/ethereum-optimism/optimism/op-chain-ops/deployer" + "github.com/ethereum-optimism/optimism/op-chain-ops/deployer/pipeline" "github.com/ethereum-optimism/optimism/op-chain-ops/deployer/state" "github.com/ethereum-optimism/optimism/op-chain-ops/devkeys" @@ -104,7 +106,7 @@ func TestEndToEndApply(t *testing.T) { Version: 1, } - require.NoError(t, ApplyPipeline( + require.NoError(t, deployer.ApplyPipeline( ctx, env, intent,