Maintenance #2
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: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# See https://nodejs.org/en/about/releases/ | |
node-version: [20.x] | |
env: | |
SOL_AST_COMPILER_CACHE: ${{ github.workspace }}/.compiler_cache | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use NodeJS ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- name: Install and lint | |
run: | | |
npm install | |
npm link | |
npm run lint | |
sol-ast-compile --version | |
# See https://souffle-lang.github.io/source | |
# See https://github.com/souffle-lang/souffle/releases | |
- name: Install Soufflé | |
run: | | |
wget https://github.com/souffle-lang/souffle/releases/download/2.4.1/x86_64-ubuntu-2004-souffle-2.4.1-Linux.deb -O /tmp/souffle.deb | |
sudo dpkg -i /tmp/souffle.deb | |
souffle --version | |
# See https://github.com/ethereum/solc-bin | |
# See https://binaries.soliditylang.org/ | |
- name: Pre-download compilers from historical builds archive | |
run: sol-ast-compile --download-compilers native wasm | |
- name: Test and generate coverage report | |
run: npm test |