Skip to content

Commit

Permalink
move storage layout into foundry
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Aug 11, 2023
1 parent 28f4d02 commit e3e83f8
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 47 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: coverage

on: push

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: "yarn"

- name: Install project dependencies
run: yarn

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

- name: Run Forge coverage
run: yarn run coverage
id: build

- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1

- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v2
with:
coverage-files: lcov.info
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./
26 changes: 8 additions & 18 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
env:
FOUNDRY_PROFILE: fast_compilation

coverage:
storage_layout:
strategy:
fail-fast: true

name: Coverage
name: Inpect storage layout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -36,19 +36,9 @@ jobs:
- name: Install node deps and founry
uses: ./.github/actions/setup_deps

- name: Run Forge coverage
run: yarn run coverage
id: build
env:
FOUNDRY_PROFILE: ci

- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1

- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v2
with:
coverage-files: lcov.info
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./
- name: "Inspect Storage Layout"
continue-on-error: false
id: storage-inspect-check
run: |
forge build
yarn run storage-inspect:check
29 changes: 0 additions & 29 deletions .github/workflows/storage.yml

This file was deleted.

0 comments on commit e3e83f8

Please sign in to comment.