Add soulbound tokens #102
Workflow file for this run
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: ci | |
jobs: | |
install: | |
name: Install dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- run: yarn install --network-concurrency 1 | |
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }} | |
lint-sol: | |
name: Solidity lint | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run linting | |
run: yarn lint:sol | |
foundry-tests: | |
name: Foundry tests | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run tests | |
run: FOUNDRY_FUZZ_RUNS=1024 forge test -vvv | |
# coverage: | |
# name: Coverage | |
# runs-on: ubuntu-latest | |
# needs: [install] | |
# steps: | |
# - uses: actions/checkout@v3 | |
# with: | |
# submodules: recursive | |
# - uses: actions/setup-node@v1 | |
# with: | |
# node-version: 18 | |
# - uses: actions/cache@master | |
# id: yarn-cache | |
# with: | |
# path: | | |
# node_modules | |
# */*/node_modules | |
# key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
# - run: yarn coverage || true | |
# - name: Coveralls | |
# uses: coverallsapp/github-action@master | |
# with: | |
# github-token: ${{ secrets.GITHUB_TOKEN }} |