Skip to content

Commit

Permalink
feat: run-unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itsyoboieltr committed Jun 27, 2024
1 parent a32cbb8 commit d39b4a5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run unit tests

on:
pull_request

jobs:
test-unit-jest:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies
run: yarn --immutable

- name: test:coverage:jest
run: yarn test:coverage:jest

test-unit-jest-development:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install dependencies
run: yarn --immutable

- name: test:coverage:jest:dev
run: yarn test:coverage:jest:dev

0 comments on commit d39b4a5

Please sign in to comment.