Skip to content

Commit 0d7022a

Browse files
authored
Merge pull request #286 from sonatype-nexus-community/feat/align-new-community-standards
feat: Work to align to latest Sonatype Community Standards
2 parents c66027a + 284c930 commit 0d7022a

File tree

18 files changed

+354
-477
lines changed

18 files changed

+354
-477
lines changed

.circleci/circleci-readme.md

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

.circleci/config.yml

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

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @madpah

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ If applicable, add screenshots to help explain your problem.
2929
**Additional context**
3030
Add any other context about the problem here.
3131

32-
cc @bhamail / @DarthHater / @allenhsieh / @Slim-Shary
32+
cc @sonatype-nexus-community/auditjs

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ assignees: ''
1515

1616
* **Anything else?**
1717

18-
cc @bhamail / @DarthHater / @allenhsieh / @ken-duck
18+
cc @sonatype-nexus-community/auditjs

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ update the docs, as well)
1111
It relates to the following issue #s:
1212
* Fixes #X
1313

14-
cc @bhamail / @DarthHater / @allenhsieh / @ken-duck
14+
cc @sonatype-nexus-community/auditjs

.github/workflows/build.yaml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- 'README.md'
7+
push:
8+
branches:
9+
- main
10+
11+
env:
12+
LC_APPLICATION_ID: auditjs
13+
NODE_VERSION: '20'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v6
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v6
25+
with:
26+
node-version: ${{ env.NODE_VERSION }}
27+
cache: 'yarn'
28+
29+
- name: Install dependencies
30+
run: yarn install
31+
32+
- name: Lint auditjs
33+
run: yarn lint
34+
35+
- name: Build
36+
run: yarn build
37+
38+
- name: Make test reports directory
39+
run: mkdir -p reports
40+
41+
- name: Run tests
42+
run: yarn test-ci
43+
44+
- name: Upload test results
45+
if: always()
46+
uses: actions/upload-artifact@v6
47+
with:
48+
name: test-results
49+
path: reports/test-results.xml
50+
51+
- name: Upload coverage
52+
if: always()
53+
uses: actions/upload-artifact@v6
54+
with:
55+
name: coverage
56+
path: lcov.info
57+
58+
- name: Dogfood scan
59+
run: yarn run start ossi -u ${{ secrets.OSSI_USERNAME }} -p ${{ secrets.OSSI_TOKEN }} --whitelist dev-auditjs.json
60+
61+
sonatype:
62+
name: Sonatype Lifecycle
63+
runs-on: ubuntu-latest
64+
timeout-minutes: 5
65+
steps:
66+
- name: Checkout Code
67+
uses: actions/checkout@v6
68+
69+
- name: Setup Node
70+
uses: actions/setup-node@v6
71+
with:
72+
node-version: ${{ env.NODE_VERSION }}
73+
74+
# See https://help.sonatype.com/en/npm-application-analysis.html
75+
- name: Install Production Node Dependencies
76+
run: yarn install --prod
77+
78+
- name: Sonatype Lifecycle Evaluation
79+
id: evaluate
80+
uses: sonatype/actions/evaluate@v1
81+
with:
82+
iq-server-url: ${{ vars.SONATYPE_PLATFORM_URL }}
83+
username: ${{ secrets.SONATYPE_LIFECYCLE_USERNAME }}
84+
password: ${{ secrets.SONATYPE_LIFECYCLE_PASSWORD }}
85+
application-id: ${{ env.LC_APPLICATION_ID }}
86+
scan-targets: 'yarn.lock node_modules'

.github/workflows/nightly.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Nightly Build
2+
3+
on:
4+
schedule:
5+
- cron: '40 20 * * *'
6+
7+
env:
8+
NODE_VERSION: '20'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v6
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version: ${{ env.NODE_VERSION }}
22+
cache: 'yarn'
23+
24+
- name: Install dependencies
25+
run: yarn install
26+
27+
- name: Lint auditjs
28+
run: yarn lint
29+
30+
- name: Build
31+
run: yarn build
32+
33+
- name: Make test reports directory
34+
run: mkdir -p reports
35+
36+
- name: Run tests
37+
run: yarn test-ci
38+
39+
- name: Upload test results
40+
if: always()
41+
uses: actions/upload-artifact@v6
42+
with:
43+
name: test-results
44+
path: reports/test-results.xml
45+
46+
- name: Upload coverage
47+
if: always()
48+
uses: actions/upload-artifact@v6
49+
with:
50+
name: coverage
51+
path: lcov.info
52+
53+
- name: Dogfood scan
54+
run: yarn run start ossi -u ${{ secrets.OSSI_USERNAME }} -p ${{ secrets.OSSI_TOKEN }} --whitelist dev-auditjs.json

0 commit comments

Comments
 (0)