π bump to 0.3.0 #64
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: Quality checks | |
env: | |
FOUNDRY_PROFILE: "ci" | |
# This CI workflow is responsible of running the linter and building the contracts. | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.QDQD_PAT }} | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
# required to install our private package from Github Packages | |
- name: Authenticate with GitHub Packages | |
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc | |
- name: Install the Node.js dependencies | |
run: npm ci | |
- name: Run the linter and the formatter in check mode | |
run: make quality | |
- name: Add lint summary | |
run: | | |
echo "## Lint result" >> $GITHUB_STEP_SUMMARY | |
echo "β Passed" >> $GITHUB_STEP_SUMMARY | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.QDQD_PAT }} | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Compile the contracts and print their size | |
run: make compile-s | |
- name: Add compile summary | |
run: | | |
echo "## Build result" >> $GITHUB_STEP_SUMMARY | |
echo "β Passed" >> $GITHUB_STEP_SUMMARY |