Skip to content

prevent load functions from rerunning excessively #2073

prevent load functions from rerunning excessively

prevent load functions from rerunning excessively #2073

Workflow file for this run

name: Run unit tests
on:
workflow_dispatch:
pull_request:
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Populate .env file
uses: SpicyPizza/create-envfile@v1.3
with:
envkey_PUBLIC_NETWORK: 1
envkey_GQL_URL: https://drips-api-mainnet-s2.up.railway.app/
envkey_GQL_ACCESS_TOKEN: afdb8b7e-8fa7-4de9-bd95-b650b839e745 # public token
envkey_PUBLIC_PINATA_GATEWAY_URL: http://localhost:3000
envkey_INFURA_KEY: 1234
envkey_MULTIPLAYER_API_ACCESS_TOKEN: 1234
envkey_MULTIPLAYER_API_URL: http://foobar:3000/
- name: Install dependencies
run: npm ci
- name: Build GQL types
run: npm run build:graphql
- name: Svelte Kit Sync
run: npx svelte-kit sync
- name: Run tests
run: npm run test:unit