Staking #42
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: dApp | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "dapp/**" | |
pull_request: | |
defaults: | |
run: | |
working-directory: ./dapp | |
jobs: | |
dapp-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "dapp/.nvmrc" | |
cache: "yarn" | |
cache-dependency-path: "dapp/yarn.lock" | |
- name: Install Dependencies | |
run: yarn install --prefer-offline --frozen-lockfile | |
- name: Format | |
run: yarn format | |
dapp-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "dapp/.nvmrc" | |
cache: "yarn" | |
cache-dependency-path: "dapp/yarn.lock" | |
- name: Install Dependencies | |
run: yarn install --prefer-offline --frozen-lockfile | |
- name: Build | |
run: yarn build |