Skip to content

Merge pull request #114 from PoliNetworkOrg/dependabot/npm_and_yarn/s… #296

Merge pull request #114 from PoliNetworkOrg/dependabot/npm_and_yarn/s…

Merge pull request #114 from PoliNetworkOrg/dependabot/npm_and_yarn/s… #296

Workflow file for this run

name: Commit Check
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
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: Install dependencies
run: yarn install --frozen-lockfile
- name: Run format check
run: yarn format:check
- name: Run lint
run: yarn lint
- name: Run build
run: yarn build