mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-06 11:00:09 -06:00
37 lines
876 B
YAML
37 lines
876 B
YAML
name: Run Jest Unit Tests
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- "main"
|
|
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run-jest-test-suite:
|
|
runs-on: ubuntu-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 yarn init-android
|
|
run: yarn install --network-concurrency 1
|
|
|
|
- name: 🔍 Run yarn tsc
|
|
run: yarn tsc
|
|
|
|
- name: 🧪 Run yarn test
|
|
run: yarn test
|
|
|
|
- name: 🦋 Check Styling
|
|
run: yarn format:check |