Skip to content

Commit 773c534

Browse files
committed
[INTERNAL] Execute depcheck in GitHub Action instead of every Azure job
Also move some other cheks and tests from Azure to GH actions. Also rename some workflows.
1 parent 4d15a18 commit 773c534

File tree

4 files changed

+50
-36
lines changed

4 files changed

+50
-36
lines changed

.github/workflows/coveralls.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/github-ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: GitHub CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
name: General checks, tests and coverage reporting
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- uses: actions/checkout@v2
16+
17+
- name: Use Node.js LTS 14.x
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 14.x
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Lint
26+
run: npm run lint
27+
28+
- name: Check for unused and missing dependencies
29+
run: npm run depcheck
30+
31+
- name: Test JSDoc generation
32+
run: npm run jsdoc-generate
33+
34+
- name: Generate test coverage report
35+
run: npm run coverage
36+
37+
- name: Send report to Coveralls
38+
uses: coverallsapp/[email protected]
39+
with:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
name: REUSE Compliance Check
1+
name: REUSE
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
48

59
jobs:
6-
test:
10+
compliance-check:
11+
name: Compliance Check
712
runs-on: ubuntu-latest
813
steps:
914
- uses: actions/checkout@v2
10-
- name: REUSE Compliance Check
15+
- name: Execute REUSE Compliance Check
1116
uses: fsfe/[email protected]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"scripts": {
2525
"test": "npm run lint && npm run jsdoc-generate && npm run coverage && npm run depcheck",
26-
"test-azure": "npm run lint && npm run jsdoc-generate && npm run coverage-xunit && npm run depcheck",
26+
"test-azure": "npm run coverage-xunit",
2727
"lint": "eslint ./",
2828
"unit": "rimraf test/tmp && ava",
2929
"unit-verbose": "rimraf test/tmp && cross-env UI5_LOG_LVL=verbose ava --verbose --serial",

0 commit comments

Comments
 (0)