Skip to content

Revamp tooling

Revamp tooling #421

Workflow file for this run

---
name: Tests and Checks
on:
workflow_dispatch:
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
security:
uses: lidofinance/linters/.github/workflows/security.yml@master
actions:
uses: lidofinance/linters/.github/workflows/actions.yml@master
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: yarn
cache-dependency-path: "**/yarn.lock"
- name: Install just
run: sudo snap install --edge --classic just
- name: Linters check
run: just lint
foundry:
name: Foundry project
runs-on: ubuntu-latest
steps:
- name: Install node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: yarn
cache-dependency-path: "**/yarn.lock"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install just
run: sudo snap install --edge --classic just
- name: Versions
run: |
forge --version
just --version
yarn --version
- name: Install dependencies
run: just deps
- name: Build
run: just build --sizes
- name: Run tests
run: just test
env:
RPC_URL: ${{ secrets.RPC_URL }}