diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e250db2c41..9236babd4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,8 @@ name: Main workflow on: push: branches: [ master ] + pull_request: + branches: [ master ] schedule: - cron: 0 0 * * * diff --git a/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/StocksAcceptanceTest.java b/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/StocksAcceptanceTest.java index 8ab83031ff..f2e24cca81 100644 --- a/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/StocksAcceptanceTest.java +++ b/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/StocksAcceptanceTest.java @@ -1,5 +1,6 @@ package pl.zankowski.iextrading4j.test.acceptance; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import pl.zankowski.iextrading4j.api.stocks.Book; import pl.zankowski.iextrading4j.api.stocks.EffectiveSpread; @@ -26,6 +27,7 @@ * @deprecated Old IEX API service https://iextrading.com/developer/ */ @Deprecated +@Disabled("403 Forbidden") public class StocksAcceptanceTest extends AcceptanceTestBase { @Test diff --git a/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/v1/ForexAcceptanceTest.java b/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/v1/ForexAcceptanceTest.java index c1d67a1122..5c5e4fb581 100644 --- a/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/v1/ForexAcceptanceTest.java +++ b/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/v1/ForexAcceptanceTest.java @@ -1,6 +1,5 @@ package pl.zankowski.iextrading4j.test.acceptance.v1; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import pl.zankowski.iextrading4j.api.forex.CurrencyConversion; import pl.zankowski.iextrading4j.api.forex.CurrencyRate; diff --git a/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/v1/IEXCloudV1AcceptanceTestBase.java b/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/v1/IEXCloudV1AcceptanceTestBase.java index b38b8a9766..732c049bf8 100644 --- a/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/v1/IEXCloudV1AcceptanceTestBase.java +++ b/iextrading4j-acceptance/src/test/java/pl/zankowski/iextrading4j/test/acceptance/v1/IEXCloudV1AcceptanceTestBase.java @@ -12,10 +12,11 @@ public class IEXCloudV1AcceptanceTestBase { protected IEXCloudClient cloudClient; @BeforeEach - public void setUp() { - cloudClient = IEXTradingClient.create(IEXTradingApiVersion.IEX_CLOUD_V1_SANDBOX, new IEXCloudTokenBuilder() + public void setUp() throws InterruptedException { + cloudClient = IEXTradingClient.create(IEXTradingApiVersion.IEX_CLOUD_STABLE_SANDBOX, new IEXCloudTokenBuilder() .withPublishableToken("Tpk_18dfe6cebb4f41ffb219b9680f9acaf2") .build()); + Thread.sleep(50); } @AfterEach