Skip to content

Initial compressor implementation #370

Initial compressor implementation

Initial compressor implementation #370

Workflow file for this run

on: [push]
name: ci
jobs:
install:
name: Install dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18.15
- 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' }}
benchmark:
name: Benchmark
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18.15
- uses: actions/cache@master
id: yarn-cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }}
- run: yarn build
- run: yarn benchmark
lint-ts:
name: Typescript lint
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18.15
- uses: actions/cache@master
id: yarn-cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }}
- run: yarn lint:ts
lint-sol:
name: Solidity lint
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18.15
- uses: actions/cache@master
id: yarn-cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }}
- run: yarn lint:sol
test:
name: Test contracts
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18.15
- uses: actions/cache@master
id: yarn-cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }}
- run: yarn build
- run: yarn test
coverage:
name: Coverage
runs-on: ubuntu-latest
needs: [install]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18.15
- 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 }}
foundry-tests:
name: Foundry tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run tests
run: FOUNDRY_FUZZ_RUNS=2048 MAX_ARRAY_LEN=32 forge test -vvv
foundry-tests-long-arrays:
name: Foundry tests (long arrays)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run tests
run: FOUNDRY_FUZZ_RUNS=1024 forge test -vvv