File tree Expand file tree Collapse file tree 4 files changed +53
-29
lines changed Expand file tree Collapse file tree 4 files changed +53
-29
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+ name : Node.js CI
5+
6+ on :
7+ push :
8+ branches : [ main ]
9+ pull_request :
10+ branches : [ main ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ strategy :
18+ matrix :
19+ node-version : [14.x, 15.x]
20+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+ steps :
23+ - uses : actions/checkout@v2
24+ - name : Use Node.js ${{ matrix.node-version }}
25+ uses : actions/setup-node@v1
26+ with :
27+ node-version : ${{ matrix.node-version }}
28+
29+ - run : npm ci
30+ - run : npm run build --if-present
31+ - run : npm run lint
32+ - run : npm run test:nolint
33+ - run : npm run test:coveralls
34+
35+ # Uncomment when we have some code to test.
36+ # - name: Coveralls
37+ # uses: coverallsapp/github-action@master
38+ # with:
39+ # github-token: ${{ secrets.GITHUB_TOKEN }}
40+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99 Application scanning component of <a href =" https://purpleteam-labs.com/ " title =" purpleteam " >purpleteam</a > - Currently in alpha
1010<br /><br />
1111
12- <a href =" https://gitlab.com/purpleteam-labs/purpleteam-app-scanner/commits/main " title =" pipeline status " >
13- <img src =" https://gitlab.com/purpleteam-labs/purpleteam-app-scanner/badges/main/pipeline .svg " alt =" pipeline status " >
12+ <a href =" https://www.gnu.org/licenses/agpl-3.0 " title =" license " >
13+ <img src =" https://img.shields.io/badge/License-AGPL%20v3-blue .svg " alt =" GNU AGPL " >
1414</a >
1515
16- <a href =" https://gitlab.com/purpleteam-labs/purpleteam-app-scanner/commits/main " title =" test coverage " >
17- <img src =" https://gitlab.com/purpleteam-labs/purpleteam-app-scanner/badges/main/coverage.svg " alt =" test coverage " >
16+ <a href =" https://github.com/purpleteam-labs/purpleteam-app-scanner/commits/main " title =" pipeline status " >
17+ <img src =" https://github.com/purpleteam-labs/purpleteam-app-scanner/workflows/Node.js%20CI/badge.svg " alt =" pipeline status " >
18+ </a >
19+
20+ <a href =' https://coveralls.io/github/purpleteam-labs/purpleteam-app-scanner?branch=main ' >
21+ <img src =' https://coveralls.io/repos/github/purpleteam-labs/purpleteam-app-scanner/badge.svg?branch=main ' alt =' test coverage ' >
1822</a >
1923
2024<a href =" https://snyk.io/test/github/purpleteam-labs/purpleteam-app-scanner?targetFile=package.json " title =" known vulnerabilities " >
@@ -37,7 +41,7 @@ npm install
3741Copy the config/config.example.json to config/config.local.json.
3842Use the config/config.js for documentation and further examples.
3943
40- Take the Zap API Key that you set-up in the [ purpleteam-s2-containers] ( https://gitlab .com/purpleteam-labs/purpleteam-s2-containers ) project and replace the ` <zap-api-key-here> ` value in the config.local.json file.
44+ Take the Zap API Key that you set-up in the [ purpleteam-s2-containers] ( https://github .com/purpleteam-labs/purpleteam-s2-containers ) project and replace the ` <zap-api-key-here> ` value in the config.local.json file.
4145
4246The following two values should be the same. They should also match the value of the orchestrator ` outcomes.dir ` :
4347
Original file line number Diff line number Diff line change 1111 "deps" : " npm-check" ,
1212 "update:deps" : " npm-check -u" ,
1313 "test" : " lab --assert @hapi/code --coverage" ,
14+ "test:coveralls" : " lab --assert @hapi/code --reporter lcov -o ./coverage/lcov.info" ,
1415 "test:nolint" : " lab --assert @hapi/code --coverage" ,
1516 "test:debug" : " node --inspect-brk ./node_modules/.bin/lab --assert @hapi/code --timeout 0" ,
1617 "pretest" : " npm run lint" ,
2223 ],
2324 "repository" : {
2425 "type" : " git" ,
25- "url" : " git+https://gitlab .com/purpleteam-labs/purpleteam-app-scanner.git"
26+ "url" : " git+https://github .com/purpleteam-labs/purpleteam-app-scanner.git"
2627 },
2728 "keywords" : [
2829 " agile" ,
6162 "author" : " Kim Carter" ,
6263 "license" : " AGPL-3.0-only" ,
6364 "bugs" : {
64- "url" : " https://gitlab .com/purpleteam-labs/purpleteam/issues"
65+ "url" : " https://github .com/purpleteam-labs/purpleteam/issues"
6566 },
66- "homepage" : " https://gitlab.com/ purpleteam-labs/purpleteam-app-scanner/blob/master/README.md " ,
67+ "homepage" : " https://purpleteam-labs.com " ,
6768 "// Old version of gherkin is required to satisfy src/scripts/cucumber-redacted.js" : " Hopefully cucumber will reinstate the cucumber-redacted functionality at some stage." ,
6869 "dependencies" : {
6970 "@cucumber/cucumber" : " ^7.0.0-rc.0" ,
You can’t perform that action at this time.
0 commit comments