Skip to content

Commit

Permalink
fix: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
lempire123 committed Mar 8, 2024
1 parent 4e7fadc commit 7ff8361
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/foundry-reports.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Foundry Reports

on: workflow_dispatch
on: [push]

concurrency:
group: ${{github.workflow}}-${{github.ref}}
Expand All @@ -12,23 +12,24 @@ env:

jobs:
generate-gas-report:
name: Generate Foundry Gas Reports
name: Gas Reports
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
uses: actions/checkout@v4

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install Node
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 18.x
cache: 'yarn'

- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1

Expand All @@ -39,30 +40,31 @@ jobs:
run: grep '^|' gas-report.txt > temp && mv temp gas-report.txt

- name: Upload Gas Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gas-report
path: gas-report.txt

generate-coverage-report:
name: Generate Foundry Coverage Reports
name: Test Coverage
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
uses: actions/checkout@v4

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install Node
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 18.x
cache: 'yarn'

- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1

Expand All @@ -73,7 +75,7 @@ jobs:
run: grep '^|' coverage-report.txt > temp && mv temp coverage-report.txt

- name: Upload Test Coverage Table
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-coverage-report
path: coverage-report.txt
Expand All @@ -82,7 +84,7 @@ jobs:
run: forge coverage --report lcov

- name: Upload LCOV Test Coverage Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: lcov-coverage-report
path: lcov.info
Expand Down

0 comments on commit 7ff8361

Please sign in to comment.