accounting-remuneration-q1-.../lib/forge-std/.github/workflows/tests.yml
2022-12-05 17:22:07 +00:00

28 lines
749 B
YAML

name: Tests
on: [push, pull_request]
jobs:
check:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: forge install
- name: Run tests
run: forge test -vvv
- name: Build Test with older solc versions
run: |
forge build --contracts src/Test.sol --use solc:0.8.0
forge build --contracts src/Test.sol --use solc:0.7.6
forge build --contracts src/Test.sol --use solc:0.7.0
forge build --contracts src/Test.sol --use solc:0.6.0