From eea61226944fa0ca3f1aeee08605a2e69583218d Mon Sep 17 00:00:00 2001 From: Ethen Pociask Date: Thu, 2 Nov 2023 16:17:22 -0700 Subject: [PATCH] [epociask/issue-172-version-pinned-devnet-allocs] Rm unecessary files & add .devnet diff --- .github/scripts/comment.js | 32 -------------------------------- .github/workflows/hygeine.yml | 3 +++ .github/workflows/test.yml | 32 ++------------------------------ 3 files changed, 5 insertions(+), 62 deletions(-) delete mode 100644 .github/scripts/comment.js diff --git a/.github/scripts/comment.js b/.github/scripts/comment.js deleted file mode 100644 index 5b695390..00000000 --- a/.github/scripts/comment.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - This script will create a comment on the pull request with the current test coverage. - If the comment already exists, it will update the existing comment. - - This script is called from the .github/workflows/test.yml workflow file. It is very difficult to debug - given the way GitHub Actions works. - -*/ -module.exports = async ({github, context, core}) => { - const fs = require('fs'); - const coverage = fs.readFileSync('out.txt', 'utf8'); - const reportBody = '### Current Test Coverage\n' + '```' + coverage + '```'; - - if (process.env.DATA == null || process.env.DATA == ''){ - // Create a comment on pull request - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: reportBody - }) - - } else { - // Update existing comment on pull request - github.rest.issues.updateComment({ - owner: context.repo.owner, - repo: context.repo.repo, - comment_id: process.env.DATA, - body: '### Current Test Coverage\n' + '```' + coverage + '```' - }) - } -} diff --git a/.github/workflows/hygeine.yml b/.github/workflows/hygeine.yml index 0ec8d6c4..925852bf 100644 --- a/.github/workflows/hygeine.yml +++ b/.github/workflows/hygeine.yml @@ -25,6 +25,9 @@ jobs: - name: Mock diff check run: make go-gen-mocks && git diff --exit-code + - name: Devnet diff check + run: make devnet-allocs && git diff --exit-code + golangci: # Linting job # https://github.com/golangci/golangci-lint-action diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6ceb754..4298a11e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,29 +42,6 @@ jobs: run: | go test -v -coverprofile=coverage.out ./internal/... - # - name: Generate Coverage - # run: | - # go tool cover -func=coverage.out | grep total | awk '{print $3}' >> out.txt - # echo "::set-output name=coverage::$(cat out.txt)" - - # - name: Find Coverage Comment - # uses: peter-evans/find-comment@v1 - # id: fc - # with: - # issue-number: ${{ github.event.pull_request.number }} - # comment-author: 'github-actions[bot]' - # body-includes: '### Current Test Coverage' - - # - name: Add Coverage Comment - # uses: actions/github-script@v6 - # env: - # DATA: ${{ steps.fc.outputs.comment-id }} - - # with: - # script: | - # const script = require('./.github/scripts/comment.js') - # await script({github, context, core}) - e2e-test: runs-on: larger-runner steps: @@ -75,13 +52,8 @@ jobs: with: go-version: 1.21 - # - name: Install foundry - # uses: foundry-rs/foundry-toolchain@v1 - - # - name: Setup devnet Resources - # id: devnet - # run: | - # make devnet-allocs + - name: Install foundry + uses: foundry-rs/foundry-toolchain@v1 - name: Run E2E Integration Tests run: make e2e-test