Feature/frontend e2e tests #38
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: "Install and build the app" | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
install-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly-547e9757e37cc970ddae7ba84fb8f501a2367d0d | |
- name: Install yarn | |
run: npm i -g yarn | |
- name: Start ganache | |
run: | | |
cd frontend | |
yarn | |
yarn ganache -d -D -q | |
- name: Deploy local contract & setup data | |
run: | | |
cd contracts | |
yarn | |
yarn hardhat compile | |
yarn build | |
yarn deploy:local | |
yarn cand | |
yarn types | |
- name: Build website | |
run: | | |
cd frontend | |
yarn build |