mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui.git
synced 2026-01-02 13:33:06 +00:00
38 lines
755 B
YAML
38 lines
755 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches: *
|
|
pull_request:
|
|
branches: *
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
VITE_CODEX_API_URL: ${{ secrets.VITE_CODEX_API_URL }}
|
|
VITE_GEO_IP_URL: ${{ secrets.VITE_GEO_IP_URL }}
|
|
jobs:
|
|
tests:
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: sudo apt update
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
|
|
- uses: actions/cache@v4
|
|
id: npm-cache
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run unit tests
|
|
run: npm run test:unit
|