Merge pull request #6 from Bananapus/npm-ify #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: contracts-template-tests | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
forge-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: bahmutov/npm-install@v1 | |
- name: Install Foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: install libraries | |
run: git submodule update --init | |
- name: Run tests | |
run: FOUNDRY_PROFILE=default forge snapshot # TODO: Change to fork once fork tests can be run | |
- name: Check contract sizes | |
run: FOUNDRY_PROFILE=ci_sizes forge build --sizes |