Skip to content

chore: updates node & packages #11

chore: updates node & packages

chore: updates node & packages #11

Workflow file for this run

name: Unit Test CI
on:
push:
branches: [main]
paths:
- 'src/**'
- 'tests/**'
- 'package.json'
- '!.github/**'
pull_request:
branches: [main]
paths:
- 'src/**'
- 'tests/**'
- 'package.json'
- 'package-lock.json'
env:
FAUNA_SECRET: ${{ secrets.VITE_FAUNA_SECRET }}
jobs:
test:
name: Unit Test CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log vars
run: |
echo $FAUNA_SECRET
- name: Install dependencies
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: NPM build
run: npm i tsup && npm run build
env:
VITE_FAUNA_SECRET: ${{ secrets.VITE_FAUNA_SECRET }}
- name: Run tests
run: |
npm run test
env:
VITE_FAUNA_SECRET: ${{ secrets.VITE_FAUNA_SECRET }}