Skip to content

πŸ”– bump to v0.1.0 #46

πŸ”– bump to v0.1.0

πŸ”– bump to v0.1.0 #46

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