Skip to content

Commit

Permalink
test: add cypress commands to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aahna-ashina committed Jul 22, 2022
1 parent fc6dd01 commit 32e5db3
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 31 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ui_goerli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ jobs:
- run: yarn install
- run: yarn build
- run: yarn lint
- run: yarn cypress:headless
1 change: 1 addition & 0 deletions .github/workflows/ui_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ jobs:
- run: yarn install
- run: yarn build
- run: yarn lint
- run: yarn cypress:headless
32 changes: 1 addition & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,7 @@ The code in this repository is structured into two main parts:

## Run the UI locally

Navigate to the folder of the UI app:
```
cd ui/
```

Install the dependencies:
```
yarn install
```

Add variables to your local development environment:
```
cp .env.mainnet .env.local
```

Build:
```
yarn build
```

Lint:
```
yarn lint
```

Start the development server:
```
yarn dev
```

Then open http://localhost:42069 in a browser.
See [ui/README.md](ui/README.md)

## Testing against the Goerli Ethereum testnet

Expand Down
49 changes: 49 additions & 0 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Nation3 App UI

https://app.nation3.org

## Run the UI locally

Navigate to the folder of the UI app:
```
cd ui/
```

Install the dependencies:
```
yarn install
```

Add variables to your local development environment:
```
cp .env.mainnet .env.local
```

Build:
```
yarn build
```

Lint:
```
yarn lint
```

Start the development server:
```
yarn dev
```

Then open http://localhost:42069 in a browser.

## Integration Testing

Run the integration tests:
```
yarn cypress
```

Run the integration tests headlessly:
```
yarn cypress:headless
```

0 comments on commit 32e5db3

Please sign in to comment.