Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Unit Tests

on:
push:
branches: [ main, develop ]
paths:
- 'packages/**'
- '.github/workflows/unit-tests.yml'
pull_request:
branches: [ main, develop ]
paths:
- 'packages/**'
- '.github/workflows/unit-tests.yml'

jobs:
test:
name: Lint and Run Unit Tests
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.19.5'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint

- name: Build packages
run: npm run build

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