mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-03 17:19:42 -05:00
add jest github action on pr
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user