Skip to content

Merge pull request #254 from skalenetwork/dependabot/npm_and_yarn/dev… #772

Merge pull request #254 from skalenetwork/dependabot/npm_and_yarn/dev…

Merge pull request #254 from skalenetwork/dependabot/npm_and_yarn/dev… #772

Workflow file for this run

name: Build and test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 18
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install project
run: yarn
- name: Install slither
run: pip3 install -r scripts/requirements.txt
- name: Show slither version
run: slither --version
- name: Lint
run: yarn fullCheck