refactor!: Remove Core
contracts from LSP7 and LSP8 + use latest @erc725/smart-contracts
to remove dependency with OwnableUnset
#3406
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
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI - Build + Lint + Test | |
on: pull_request | |
jobs: | |
build-lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
- name: Use Node.js v20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
cache: "npm" | |
- name: 📦 Install dependencies | |
run: npm ci | |
- name: 🔍 Run Solidity Linter | |
run: npm run lint:solidity | |
- name: 🎨 Run ESLint on JS/TS files | |
run: npm run lint | |
# This will also generate the Typechain types used by the Chai tests | |
- name: 🏗️ Build contract artifacts | |
run: | | |
npm run build | |
npm run build:js | |
# - name: 📚 generate ABI docs | |
# run: npm run build:docs | |
# - name: 🔍 check if ABI auto-generated docs need to be updated | |
# run: |- | |
# if [[ $(git diff --name-only) != "" ]]; | |
# then | |
# echo "Error: Please generate ABI docs after making changes to Solidity code and Natspec comments!" | |
# exit 1 | |
# fi | |
- name: 🧪 Run tests for each package | |
run: npm run test |