Skip to content

Commit

Permalink
add jest test on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Babali42 committed Aug 19, 2024
1 parent 4c2279d commit c8670e6
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 438 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@
name: ESLint

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '41 13 * * 5'

jobs:
eslint:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/jest-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Tests

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
cache-dependency-path: 'package-lock.json'

- name: Install dependencies
run: npm ci

- name: Run Jest tests
run: npm run test
Loading

0 comments on commit c8670e6

Please sign in to comment.