Skip to content

Hide projects and lists #2494

Hide projects and lists

Hide projects and lists #2494

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/[email protected]
with:
envkey_PUBLIC_NETWORK: 1
envkey_GQL_URL: https://drips-multichain-api.up.railway.app/
envkey_GQL_ACCESS_TOKEN: 7f82c43a-e7f4-47e9-a623-db7066f8bea2 # 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: SKIP_API_CHECK=true npm run build:graphql
- name: Svelte Kit Sync
run: npx svelte-kit sync
- name: Run tests
run: npm run test:unit