Skip to content

feat: Add basic CI

feat: Add basic CI #1

Workflow file for this run

name: Solidity CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
npm-version: [10.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install npm ${{ matrix.npm-version }}
run: npm install -g npm@${{ matrix.npm-version }}
- name: Install dependencies
run: yarn install
- name: Compile contracts
run: yarn compile
- name: Run linter
run: yarn lint
- name: Run tests
run: yarn test
- name: Run coverage
run: yarn coverage