Skip to content

chore: update community profile #63

chore: update community profile

chore: update community profile #63

Workflow file for this run

name: Continuous Integration
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- edited
# env:
# FOUNDRY_PROFILE: ci
jobs:
# format-check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly
# - name: Run format check
# run: |
# forge fmt --check
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run tests
run: |
forge test
install-with-template-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Setup Git user
run: |
git config --global user.email "github-actions@example.com"
git config --global user.name "GitHub Actions"
- name: Run forge init with metacontract/template
run: |
mkdir /tmp/install-with-template-test
cd /tmp/install-with-template-test
forge init mc-example-project -t metacontract/template
- name: Run forge test
run: |
cd /tmp/install-with-template-test/mc-example-project
forge test
# slither:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - name: Run Slither
# uses: crytic/slither-action@v0.2.0
# continue-on-error: true
# with:
# node-version: 16
# coverage:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly
# - name: Generate coverage report
# run: |
# forge coverage --report lcov
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3