Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cc7b2af
FKITDEV-8416 remove travis config
szollarp Feb 26, 2026
3150268
FKITDEV-8416 add improved-yarn-audit package
szollarp Feb 26, 2026
ddcede4
FKITDEV-8416 add Github actions
szollarp Feb 26, 2026
eeb939c
FKITDEV-8416 add test:ci script
szollarp Feb 26, 2026
5568b9e
FKITDEV-8416 remove release pipeline, update pull request pipeline
szollarp Feb 27, 2026
a99cb9b
FKITDEV-8416 add test step
szollarp Feb 27, 2026
b5111de
FKITDEV-8416 fix lint step
szollarp Feb 27, 2026
b14c244
FKITDEV-8416 remove forced sonar branch name
szollarp Feb 27, 2026
581c01f
lint fix
horvathbalazshbal Mar 9, 2026
1e472c9
replace coveralls with coveralls-next
horvathbalazshbal Mar 9, 2026
8d5eda2
add testconfig
horvathbalazshbal Mar 9, 2026
cbbe032
yarn upgrade
horvathbalazshbal Mar 9, 2026
4df799a
fixing config load and renaming files and remove unused files
horvathbalazshbal Mar 10, 2026
0ff31e1
try change NODE_ENV value
horvathbalazshbal Mar 10, 2026
9b748da
try to fix the lcov path
horvathbalazshbal Mar 10, 2026
0599867
run coveralls-next with npx
horvathbalazshbal Mar 10, 2026
d3a8511
remove coveralls.next frm script
horvathbalazshbal Mar 10, 2026
e89fd54
remove coveralls
horvathbalazshbal Mar 10, 2026
a24b0b5
chore: fix sonar.projectKey
horvathbalazshbal Apr 17, 2026
ba6f072
chore: fixing sonar auth
horvathbalazshbal Apr 17, 2026
3022f8f
chore: fix report file path
horvathbalazshbal Apr 17, 2026
16f9a72
chore swap to sonarqube-scan-action@v6
horvathbalazshbal Apr 17, 2026
c4a617d
chore: add PR parameters to sonar
horvathbalazshbal Apr 17, 2026
cb88282
chore: remove exclude list
horvathbalazshbal Apr 20, 2026
f193018
Merge branch 'master' into improvement/FKITDEV-8416
horvathbalazshbal May 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
199 changes: 199 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
name: Pull Request

on:
pull_request:

concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true

env:
NODE_VERSION: "24"

defaults:
run:
shell: bash

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: |
set -euo pipefail
yarn lint 2>&1 | tee lint-results.txt

- name: Upload lint results
if: always()
uses: actions/upload-artifact@v6
with:
name: lint-results
path: lint-results.txt

audit:
name: Audit
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Audit
run: |
set -euo pipefail

set +e
yarn audit --groups dependencies 2>&1 | tee audit-results.txt
set -e

yarn run improved-yarn-audit \
Comment thread
horvathbalazshbal marked this conversation as resolved.
--min-severity critical \
2>&1 | tee -a audit-results.txt

- name: Upload audit results
if: always()
uses: actions/upload-artifact@v6
with:
name: audit-results
path: audit-results.txt

test:
name: Unit Tests
runs-on: ubuntu-latest
permissions:
contents: read
env:
NODE_ENV: ci

services:
rabbitmq:
image: rabbitmq:4.1.4
ports:
- 5672:5672
- 5671:5671
options: >-
--health-cmd "rabbitmq-diagnostics status"
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Unit tests
run: |
set -euo pipefail
yarn test:ci 2>&1 | tee unit-test-results.txt

- name: Upload test results
if: always()
uses: actions/upload-artifact@v6
with:
name: unit-test-results
path: unit-test-results.txt

- name: Upload lcov coverage
if: always()
uses: actions/upload-artifact@v6
with:
name: jest-lcov
path: test/coverage/jest/lcov.info

sonar:
name: SonarQube Scan
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=techteamer
-Dsonar.projectKey=TechTeamer_mq
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.head_ref }}
-Dsonar.pullrequest.base=${{ github.base_ref }}
-Dsonar.scanner.metadataFilePath=${{ github.workspace }}/sonar-report-task.txt

- name: Upload Sonar report metadata
if: always()
uses: actions/upload-artifact@v6
with:
name: sonar-report-task
path: sonar-report-task.txt

build:
name: Build
runs-on: ubuntu-latest
needs: [lint, audit, test, sonar]
permissions:
contents: read
steps:
- uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: |
set -euo pipefail
yarn build 2>&1 | tee build-results.txt

- name: Upload build results
if: always()
uses: actions/upload-artifact@v6
with:
name: build-results
path: build-results.txt
38 changes: 0 additions & 38 deletions .github/workflows/release.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable n/no-missing-import */
import QueueClient from './src/QueueClient.js'
import QueueConfig from './src/QueueConfig.js'
import QueueConnection from './src/QueueConnection.js'
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"build": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && ./fixup.sh",
"lint": "eslint . --max-warnings 0 --ignore-pattern \"test/*\" && echo 'npm run eslint --max-warnings 0'",
"lint:fix": "eslint . --fix && eslint --max-warnings 0 .",
"unit": "vitest run",
"test": "yarn lint && c8 --temp-directory=./test/coverage/tmp vitest run && c8 report --reporter=text-lcov --report-dir=./test/coverage/ --reporter=lcovonly | coveralls"
"test": "vitest run",
"test:ci": "c8 --temp-directory=./test/coverage/tmp vitest run && c8 report --reporter=text-lcov --report-dir=./test/coverage/ --reporter=lcovonly"
},
"type": "module",
"dependencies": {
Expand All @@ -46,7 +46,6 @@
"@semantic-release/release-notes-generator": "^14.0.0",
"@types/amqplib": "^0.10.8",
"c8": "^9.1.0",
"coveralls": "^3.1.1",
"eslint": "^9.19.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.31.0",
Expand All @@ -56,6 +55,7 @@
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-standard": "^5.0.0",
"globals": "^15.14.0",
"improved-yarn-audit": "^3.0.4",
"protobufjs": "^7.2.3",
"seed-random": "^2.2.0",
"semantic-release": "^24.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sonar.host.url=https://sonarcloud.io
sonar.projectKey=techteamer_mq
sonar.projectKey=TechTeamer_mq
sonar.organization=techteamer

sonar.sources=.
Expand Down
10 changes: 0 additions & 10 deletions test/config/DefaultConfig.ts

This file was deleted.

12 changes: 6 additions & 6 deletions test/config/LoadConfig.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
let config
let config;

if (process.env.NODE_ENV === 'travis') {
config = (await import('./DefaultConfig')).default
if (process.env.NODE_ENV === "ci") {
config = (await import("./TestConfig-ci")).default;
} else {
try {
config = (await import('./TestConfig')).default // eslint-disable-line n/no-missing-import
config = (await import("./TestConfig")).default; // eslint-disable-line n/no-missing-import
} catch (testConfigLoadError) {
console.error('Cannot load test configuration', testConfigLoadError)
console.error("Cannot load test configuration", testConfigLoadError);
}
}

export default config
export default config;
12 changes: 12 additions & 0 deletions test/config/TestConfig-ci.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import QueueConfig from "../../src/QueueConfig";
import ConsoleInspector from "../consoleInspector";

export default new QueueConfig({
url: "amqp://guest:guest@localhost:5672",
options: {
rejectUnauthorized: false,
},
rpcTimeoutMs: 10000,
rpcQueueMaxSize: 100,
logger: new ConsoleInspector(console) as unknown as Console,
});
17 changes: 0 additions & 17 deletions test/config/TestConfig.js.config

This file was deleted.

17 changes: 17 additions & 0 deletions test/config/TestConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import QueueConfig from "../../src/QueueConfig";
import ConsoleInspector from "../consoleInspector";

const certPath = "/workspace/vuer_docker/workspace/cert/vuer_mq_cert";

export default new QueueConfig({
url: "amqps://localhost:5671",
options: {
rejectUnauthorized: false,
cert: certPath + "/client/cert.pem",
key: certPath + "/client/key.pem",
ca: [certPath + "/ca/cacert.pem"],
},
rpcTimeoutMs: 10000,
rpcQueueMaxSize: 100,
logger: new ConsoleInspector(console) as unknown as Console,
});
Loading
Loading