Merge pull request #888 from privacy-scaling-explorations/chore/linte… #9
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: Contracts | |
on: | |
push: | |
branches: [master, dev] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Update npm to latest version | |
run: npm install --global npm@latest | |
- name: Build | |
run: | | |
npm install | |
npm run bootstrap | |
npm run build | |
- name: Compile Solidity | |
run: npm run compileSol | |
working-directory: contracts | |
- name: Test | |
run: npm run test | |
working-directory: contracts |