Revamp tooling #436
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
--- | |
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 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cargo/bin/ | |
key: ${{ runner.os }}-cargobin-${{ hashFiles('.github/**/*.yml') }} | |
- name: Install just | |
run: which just || cargo install [email protected] | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: yarn | |
cache-dependency-path: "**/yarn.lock" | |
- name: Install dependencies | |
run: just deps | |
- name: Linters check | |
run: just lint | |
foundry: | |
name: Foundry project | |
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 Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Foundry version | |
run: forge --version | |
- name: Install just | |
run: cargo install just | |
- name: Install dependencies | |
run: just deps | |
- name: Build | |
run: just build --sizes | |
- name: Run tests | |
run: just test | |
env: | |
RPC_URL: ${{ secrets.RPC_URL }} |