-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.4 KB
/
unittest.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
53
54
55
56
57
58
---
name: UnitTest
on:
release:
types:
- published
push:
branches: ["dev", "dev-update", "dev-update*", ]
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
jobs:
ESLint:
name: ESLint
runs-on: ubuntu-22.04 # ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
npm install
npm install eslint
- name: Run ESLint
run: npm run lint
EJSlint:
name: EJSlint
runs-on: ubuntu-22.04 # ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
npm install
npm install -g ejs-lint
- name: Run EJSlint
run: npm run ejslint generators/
UnitTest-Jest:
name: UnitTest:Jest
runs-on: ubuntu-22.04 # ubuntu-latest
needs: [
ESLint,
EJSlint,
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Set git config
run: |
git config --global user.user "dennykorsukewitz"
git config --global user.name "Denny Korsukéwitz"
git config --global github.user "dennykorsukewitz"
git config --global github.name "Denny Korsukéwitz"
- name: Run jest with coverage
run: npm run coverage