App-Expansion #1 (MDP-96) #281
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 Yarn CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: contracts | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
node-version: [14.x, 16.x, 18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: contracts/yarn.lock | |
- run: npm install --global yarn | |
- run: echo $(yarn --version) | |
- run: yarn install | |
- run: yarn solhint | |
- run: yarn prettier:solidity |