add jest github action on pr

This commit is contained in:
Violet Caulfield
2025-04-01 20:23:56 -07:00
parent 9aa2ca04ec
commit d2bed17e93
+23
View File
@@ -0,0 +1,23 @@
name: Run Jest Unit Tests
on:
pull_request:
jobs:
build-android:
runs-on: macos-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
- name: 🖥 Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: 💬 Echo package.json version to Github ENV
run: echo VERSION_NUMBER=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV
- name: 🟢 Run npm run init
run: npm run init
- name: 🧪 Run npm test
run: npm run test