Skip to content

Commit

Permalink
chore: add unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-mangilev committed Jan 25, 2025
1 parent 95bcb7c commit 61cfa96
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: e2e
on:
push:
branches: [main, master]
branches: main
pull_request:
branches: [main, master]
branches: main
jobs:
test:
timeout-minutes: 60
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: unit

on:
push:
branches: main
pull_request:
branches: main

env:
NODE_VERSION: '20.9.0'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org/'
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run karma tests
run: npx ng test --watch=false

0 comments on commit 61cfa96

Please sign in to comment.