Skip to content

Commit 897c598

Browse files
Vaibhav  BhallaVaibhav  Bhalla
authored andcommitted
refactor(chore): node version and loopback packages upgrade
node version 18 is no longer supported and upgrade loopback packages version BREAKING CHANGE: YES GH-13
1 parent 9d27003 commit 897c598

6 files changed

Lines changed: 1259 additions & 1012 deletions

File tree

.github/workflows/main.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,26 @@ on:
66
pull_request:
77
branches: [master]
88

9-
# This workflow contains a single job called "npm_test"
109
jobs:
11-
npm_test:
12-
# The type of runner that the job will run on
10+
node_matrix_tests:
1311
runs-on: ubuntu-latest
14-
15-
# Steps represent a sequence of tasks that will be executed as part of the job
12+
strategy:
13+
matrix:
14+
node-version: [20, 22, 24]
1615
steps:
17-
# Checks-out your repository under $GITHUB_WORKSPACE
1816
- uses: actions/checkout@v3
1917
- uses: actions/setup-node@v3
2018
with:
21-
node-version: '18.x'
22-
23-
- name: Install Dependencies 📌
19+
node-version: ${{ matrix.node-version }}
20+
- name: Install Dependencies
2421
run: npm ci
25-
26-
- name: Run Test Cases 🔧
22+
- name: Run Test Cases
2723
run: npm run test
24+
25+
npm_test:
26+
runs-on: ubuntu-latest
27+
needs: node_matrix_tests
28+
if: success()
29+
steps:
30+
- name: Final status
31+
run: echo "✅ All tests passed for Node.js 20, 22, and 24"

.github/workflows/trivy.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Trivy Scan
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
pull_request:
9+
branches: [master]
10+
types: [opened, synchronize, reopened]
11+
12+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+
jobs:
14+
# This workflow contains a single job called "trivy"
15+
trivy:
16+
# The type of runner that the job will run on
17+
runs-on: [self-hosted, linux, codebuild]
18+
19+
# Steps represent a sequence of tasks that will be executed as part of the job
20+
steps:
21+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+
- uses: actions/checkout@v3
23+
24+
- name: Run Trivy vulnerability scanner in repo mode
25+
uses: aquasecurity/trivy-action@0.28.0
26+
with:
27+
scan-type: "fs"
28+
scan-ref: "${{ github.workspace }}"
29+
trivy-config: "${{ github.workspace }}/trivy.yml"

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
<a href="https://sonarcloud.io/summary/new_code?id=sourcefuse_loopback4-billing" target="_blank">
1010
<img alt="Sonar Quality Gate" src="https://img.shields.io/sonar/quality_gate/sourcefuse_loopback4-billing?server=https%3A%2F%2Fsonarcloud.io">
1111
</a>
12-
<a href="https://app.snyk.io/org/ashishkaushik/reporting?context[page]=issues-detail&project_target=%255B%2522sourcefuse%252Floopback4-billing%2522%255D&project_origin=%255B%2522github%2522%255D&issue_status=%255B%2522Open%2522%255D&issue_by=Severity&table_issues_detail_cols=SCORE%257CCVE%257CCWE%257CPROJECT%257CEXPLOIT%2520MATURITY%257CINTRODUCED%257CSNYK%2520PRODUCT&v=1">
13-
<img alt="Synk Status" src="https://img.shields.io/badge/SYNK_SECURITY-MONITORED-GREEN">
14-
</a>
1512
<a href="https://github.com/sourcefuse/loopback4-billing/graphs/contributors" target="_blank">
1613
<img alt="GitHub contributors" src="https://img.shields.io/github/contributors/sourcefuse/loopback4-billing?">
1714
</a>

0 commit comments

Comments
 (0)