Adapting the tutorial island guide to focus on Redstone #1803
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: check-frontend | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Git LFS Pull | |
run: | | |
git lfs pull | |
- name: Install foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Building contract abi | |
working-directory: contracts | |
run: | | |
forge --version | |
forge build --sizes | |
id: build | |
- name: Install node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.16.x | |
- name: Install | |
run: | | |
npm ci | |
(cd core && npm run build) | |
- name: Lint | |
working-directory: frontend | |
run: | | |
npx next lint --max-warnings=0 | |
- name: Format | |
working-directory: frontend | |
run: | | |
npx eslint . --ext .ts --ext .tsx --quiet | |
- name: Export | |
working-directory: frontend | |
run: | | |
npm run export |