WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 097f160

Browse files
dpogueOS-kepatotorica
authored andcommitted
chore(ci): Add code scanning & fix dependabot failures (apache#1505)
1 parent db59645 commit 097f160

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717

1818
name: Node CI
1919

20-
on: [push, pull_request]
20+
on:
21+
push:
22+
branches-ignore:
23+
- 'dependabot/**'
24+
pull_request:
25+
branches:
26+
- '*'
2127

2228
jobs:
2329
darwin:
@@ -41,13 +47,32 @@ jobs:
4147
node --version
4248
npm --version
4349
50+
- uses: github/codeql-action/init@v3
51+
with:
52+
languages: javascript
53+
queries: security-and-quality
54+
config: |
55+
paths-ignore:
56+
- coverage
57+
- node_modules
58+
- templates/project/www/cordova.js
59+
4460
- name: npm install and test
4561
run: |
4662
npm i -g ios-deploy
4763
npm cit
4864
env:
4965
CI: true
5066

67+
- uses: github/codeql-action/analyze@v3
68+
69+
- uses: codecov/codecov-action@v4
70+
if: success()
71+
with:
72+
name: ${{ runner.os }} node.js ${{ matrix.node-version }} (darwin)
73+
token: ${{ secrets.CORDOVA_CODECOV_TOKEN }}
74+
fail_ci_if_error: false
75+
5176
non-darwin:
5277
name: NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
5378
runs-on: ${{ matrix.os }}
@@ -69,10 +94,29 @@ jobs:
6994
node --version
7095
npm --version
7196
97+
- uses: github/codeql-action/init@v3
98+
with:
99+
languages: javascript
100+
queries: security-and-quality
101+
config: |
102+
paths-ignore:
103+
- coverage
104+
- node_modules
105+
- templates/project/www/cordova.js
106+
72107
- name: npm install and test
73108
run: |
74109
npm ci
75110
npm run lint
76111
npm run unit-tests
77112
env:
78113
CI: true
114+
115+
- uses: github/codeql-action/analyze@v3
116+
117+
- uses: codecov/codecov-action@v4
118+
if: success()
119+
with:
120+
name: ${{ runner.os }} node.js ${{ matrix.node-version }} (non-darwin)
121+
token: ${{ secrets.CORDOVA_CODECOV_TOKEN }}
122+
fail_ci_if_error: false

.github/workflows/release-audit.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717

1818
name: Release Auditing
1919

20-
on: [push, pull_request]
20+
on:
21+
push:
22+
branches-ignore:
23+
- 'dependabot/**'
24+
pull_request:
25+
branches:
26+
- '*'
2127

2228
jobs:
2329
test:

0 commit comments

Comments
 (0)