-
-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (41 loc) · 1.19 KB
/
locale-test.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Angular Locale Test
on:
pull_request:
branches: [ develop ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
node-version: [ 16.x ]
runs-on: ubuntu-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Install Deps
run: |
cd ./wowup-electron
npm i --force
- name: Lint
run: |
cd ./wowup-electron
ng lint
- name: Test Locales
run: |
sudo apt-get install xvfb
cd ./wowup-electron
xvfb-run --auto-servernum ng test --watch=false --include='src/locales.spec.ts'
- name: Run Test Suite
run: |
sudo apt-get install xvfb
cd ./wowup-electron
xvfb-run --auto-servernum ng test --watch=false