forked from evergreen-library-system/Evergreen
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 802 Bytes
/
ng-test.yml
File metadata and controls
30 lines (30 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Run Angular Unit Tests
on:
push:
paths:
- '.github/workflows/**'
- 'Open-ILS/src/eg2/**'
pull_request:
paths:
- '.github/workflows/**'
- 'Open-ILS/src/eg2/**'
defaults:
run:
working-directory: Open-ILS/src/eg2
jobs:
lint:
name: Run Angular unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: browser-actions/setup-chrome@v1
- uses: browser-actions/setup-firefox@v1
with:
node-version: 22
cache: 'npm'
cache-dependency-path: Open-ILS/src/eg2/package-lock.json
- name: Install dependencies
run: npm ci --ignore-scripts && sudo apt-get install -y libxml-libxslt-perl
- name: test
run: npm run test