-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (45 loc) · 1.23 KB
/
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
53
54
55
name: Test
on:
pull_request:
push:
branches:
- master
- release
concurrency:
group: test-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Katalon Agent
uses: actions/checkout@v3
- name: Set up Nodejs 14
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Run test
run: |
npm ci
npm run eslint
npm run test:coverage || true
npm run buildLinux --if-present
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/lcov.info
- name: Sonar Cloud Scan
uses: SonarSource/[email protected]
with:
args: >
-Dsonar.verbose=true
-X
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Run ESLint check
uses: sibiraj-s/action-eslint@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
eslint-args: '-c .eslintrc.yml'
extensions: 'js'
annotations: true