Revamp tooling #426
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 | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: yarn | |
cache-dependency-path: "**/yarn.lock" | |
- name: Install just | |
run: conda install -c conda-forge just | |
- 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: conda install -c conda-forge 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 }} |