Skip to content

Commit

Permalink
Create CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aviggiano committed Dec 4, 2023
1 parent 3dc86b8 commit 1c851f5
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 34 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches:
- develop
pull_request:
branches:
- "*"

jobs:
check:
strategy:
fail-fast: true

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

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

- name: Contract sizes
run: |
forge --version
forge build --sizes
id: build

- name: Test
run: |
forge test -vvv
id: test

- name: Coverage
run: |
forge coverage --report lcov
lcov --remove lcov.info -o lcov.info 'test/*' 'script/*'
genhtml lcov.info -o report --branch-coverage
id: coverage

- name: Archive results
uses: actions/upload-artifact@v3
with:
name: coverage
path: report/
34 changes: 0 additions & 34 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 1c851f5

Please sign in to comment.