From 47fb27979d453bfa77532b80f72d0475a5147eaf Mon Sep 17 00:00:00 2001 From: grkmyvz Date: Fri, 1 Sep 2023 02:40:20 +0300 Subject: [PATCH 1/4] Edited `test.yml`for github tests --- .github/workflows/test.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 09880b1d..39854025 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,12 @@ jobs: forge build --sizes id: build - - name: Run Forge tests + - name: Run NFTContract test run: | - forge test -vvv - id: test + forge test --mc NFTContractAudit -vvvvv + id: nftcontracttests + + - name: Run TokenSale test + run: | + forge test --mc TokenSaleAudit -vvvvv + id: tokensaletests From cade04bf74422bafe1b1dba5de6bd5810558a8b1 Mon Sep 17 00:00:00 2001 From: grkmyvz Date: Fri, 1 Sep 2023 02:48:05 +0300 Subject: [PATCH 2/4] Edited `test.yml` --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39854025..93604d54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,10 @@ -name: test +name: Test -on: workflow_dispatch +on: + pull_request: + push: + branches: + - main env: FOUNDRY_PROFILE: ci From 7b6c95d298c92cee438ce5a3095b82a22546d425 Mon Sep 17 00:00:00 2001 From: grkmyvz Date: Fri, 1 Sep 2023 02:48:05 +0300 Subject: [PATCH 3/4] Edited `test.yml` Create contract tests --- .github/workflows/test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39854025..e7ef336c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,10 @@ -name: test +name: Test -on: workflow_dispatch +on: + pull_request: + push: + branches: + - main env: FOUNDRY_PROFILE: ci @@ -10,7 +14,7 @@ jobs: strategy: fail-fast: true - name: Foundry project + name: Contract Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From 6acf23c588686fa29669a39abbc5456836b1a045 Mon Sep 17 00:00:00 2001 From: grkmyvz Date: Fri, 1 Sep 2023 19:36:11 +0300 Subject: [PATCH 4/4] Changed foundry test type --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7ef336c..5f6e3df1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,10 +34,10 @@ jobs: - name: Run NFTContract test run: | - forge test --mc NFTContractAudit -vvvvv + forge test --mc NFTContractAudit -vvv id: nftcontracttests - name: Run TokenSale test run: | - forge test --mc TokenSaleAudit -vvvvv + forge test --mc TokenSaleAudit -vvv id: tokensaletests