Charts + analytics #1576
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: UI | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- "projects/ui/**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Cache Node Modules | |
id: node-modules-cache | |
uses: actions/cache@v3 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install Dependencies | |
if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
run: yarn install --immutable | |
- name: Build SDK | |
run: yarn workspace @beanstalk/sdk generate && yarn build | |
- name: Generate Typedefs | |
run: yarn ui:generate | |
- name: Unit Tests | |
run: yarn ui:test | |
env: | |
VITE_ALCHEMY_API_KEY: ${{ secrets.VITE_ALCHEMY_API_KEY }} | |
VITE_WALLETCONNECT_PROJECT_ID: ${{ secrets.VITE_WALLETCONNECT_PROJECT_ID }} |