CI Deep #49
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: "CI Deep" | |
on: | |
schedule: | |
- cron: "0 3 * * 0" # at 3:00am UTC every Sunday | |
workflow_dispatch: | |
inputs: | |
fuzzRuns: | |
default: "100000" | |
description: "Number of fuzz runs." | |
required: false | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
- name: "Install Bun" | |
uses: "oven-sh/setup-bun@v1" | |
- name: "Install the Node.js dependencies" | |
run: "bun install" | |
- name: "Lint the code" | |
run: "bun run lint" | |
- name: "Add lint summary" | |
run: | | |
echo "## Lint result" >> $GITHUB_STEP_SUMMARY | |
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY | |
test: | |
env: | |
FOUNDRY_FUZZ_RUNS: ${{ inputs.fuzzRuns || '100000' }} | |
needs: "lint" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
- name: "Install Bun" | |
uses: "oven-sh/setup-bun@v1" | |
- name: "Install the Node.js dependencies" | |
run: "bun install" | |
- name: "Produce an optimized build with --via-ir" | |
run: "FOUNDRY_PROFILE=optimized forge build" | |
- name: "Run the tests against the optimized build" | |
run: "FOUNDRY_PROFILE=test-optimized forge test" | |
- name: "Add test summary" | |
run: | | |
echo "## Tests result" >> $GITHUB_STEP_SUMMARY | |
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY |