Merge pull request #5 from davisshaver/update-resolver #69
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
on: push | |
name: Unit Tests | |
defaults: | |
run: | |
shell: bash | |
env: | |
CI: true | |
FOUNDRY_PROFILE: CI | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Install Foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- run: yarn install --frozen-lockfile | |
- name: Run lint check | |
run: yarn lint:check | |
- name: Run tests | |
run: yarn test | |
env: | |
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | |
- run: yarn clean | |
- run: yarn build:slither | |
- name: Run Slither | |
uses: crytic/[email protected] | |
id: slither | |
with: | |
ignore-compile: true | |
sarif: results.sarif | |
fail-on: none | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: ${{ steps.slither.outputs.sarif }} |