From a6d0dace48bd862602286bbe9436b1584e0483fd Mon Sep 17 00:00:00 2001 From: Ramarti Date: Wed, 10 Apr 2024 20:45:08 -0300 Subject: [PATCH 1/2] Refactor Governance into AccessManager (#43) * refactor Governance into AccessManager * remove view method in script --- .github/workflows/foundry_ci.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/foundry_ci.yml b/.github/workflows/foundry_ci.yml index e62faa6b..ff4342e5 100644 --- a/.github/workflows/foundry_ci.yml +++ b/.github/workflows/foundry_ci.yml @@ -7,24 +7,16 @@ on: jobs: - # Add job timestamp - print_timestamp: - runs-on: ubuntu-latest - steps: - - name: Generate timestamp - run: | - echo "TIMESTAMP=$(TZ='America/Los_Angeles' date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV - - - name: Print timestamp - run: | - echo "Execution time (Pacific Time Zone) $TIMESTAMP" + # Add a timestamp to the build + Timestamp: + uses: storyprotocol/gha-workflows/.github/workflows/reusable-timestamp.yml@main foundry-test: strategy: fail-fast: true name: Foundry Unit Test runs-on: ubuntu-latest - needs: print_timestamp + needs: [Timestamp] steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: @@ -60,3 +52,12 @@ jobs: - name: Run solhint run: npx solhint contracts/**/*.sol + + Coverage: + needs: [foundry-test] + uses: storyprotocol/gha-workflows/.github/workflows/reusable-forge-code-coverage.yml@feat/add_reusable_forge_code_coverage + # FOR LOCAL TESTING + # uses: ./../gha-workflows/.github/workflows/reusable-forge-code-coverage.yml + with: + exclude_paths: 'test/*, script/*' + branch_coverage: true From d3166d79bc7e7051c29ffa1471dbf60b402fc6a1 Mon Sep 17 00:00:00 2001 From: Andy Wu Date: Thu, 11 Apr 2024 15:13:56 -0700 Subject: [PATCH 2/2] [feat] add reusable forge code coverage workflow --- .github/workflows/foundry_ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/foundry_ci.yml b/.github/workflows/foundry_ci.yml index ff4342e5..1fed6276 100644 --- a/.github/workflows/foundry_ci.yml +++ b/.github/workflows/foundry_ci.yml @@ -55,8 +55,8 @@ jobs: Coverage: needs: [foundry-test] - uses: storyprotocol/gha-workflows/.github/workflows/reusable-forge-code-coverage.yml@feat/add_reusable_forge_code_coverage - # FOR LOCAL TESTING + uses: storyprotocol/gha-workflows/.github/workflows/reusable-forge-code-coverage.yml@main + # FOR LOCAL TESTING ONLY # uses: ./../gha-workflows/.github/workflows/reusable-forge-code-coverage.yml with: exclude_paths: 'test/*, script/*'