updates names and removes space #17
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: Build & 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 }} |