Skip to content

Commit

Permalink
Add unit tests PR check
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzalezg9 committed Apr 16, 2024
1 parent 57a80c1 commit aab2e26
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pull_request_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR checks

on:
pull_request:
branches:
- master

jobs:
pr_checks:
runs-on: ubuntu-latest

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

- name: Install dependencies
run: yarn install

- name: Run unit tests
run: yarn test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest --coverage=false --changedSince=origin/master --detectOpenHandles",
"test": "jest --coverage=false --changedSince=origin/master",
"test:debug": "jest -o --watch --coverage=false",
"test:updateSnapshots": "jest -u --coverage=false"
},
Expand Down Expand Up @@ -69,4 +69,4 @@
"typescript": "^5.3.3"
},
"private": true
}
}

0 comments on commit aab2e26

Please sign in to comment.