-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (43 loc) · 1.18 KB
/
ci-pr.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
name: Continous Integration
on:
pull_request:
branches:
- master
- main
jobs:
build:
name: Build, Lint Checks and Tests
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install NPM dependencies
run: npm install
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
check-latest: true
- name: Start Mock Server
shell: bash
run: |
chmod +x "${GITHUB_WORKSPACE}/scripts/setup_mock.sh"
"${GITHUB_WORKSPACE}/scripts/setup_mock.sh"
- name: JSLint
run: npm run lint
- name: Tests
run: npm run test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./test-results/coverage/all/lcov/lcov-all.info