generated from nhcarrigan/template
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
bdc17d644d | |||
d622620120 | |||
a21655bf70 |
@ -28,6 +28,9 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Build Database
|
||||||
|
run: pnpm prisma generate
|
||||||
|
|
||||||
- name: Lint Source Files
|
- name: Lint Source Files
|
||||||
run: pnpm run lint
|
run: pnpm run lint
|
||||||
|
|
||||||
|
34
.gitea/workflows/sonar.yml
Normal file
34
.gitea/workflows/sonar.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Code Analysis
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sonar:
|
||||||
|
name: SonarQube
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source Files
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: SonarCube Scan
|
||||||
|
uses: SonarSource/sonarqube-scan-action@v4
|
||||||
|
timeout-minutes: 10
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
|
||||||
|
with:
|
||||||
|
args: >
|
||||||
|
-Dsonar.sources=.
|
||||||
|
-Dsonar.projectKey=gwen-abalise
|
||||||
|
|
||||||
|
- name: SonarQube Quality Gate check
|
||||||
|
uses: sonarsource/sonarqube-quality-gate-action@v1
|
||||||
|
with:
|
||||||
|
pollingTimeoutSec: 600
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: "https://quality.nhcarrigan.com"
|
@ -58,12 +58,12 @@ export const instantiateServer = (): void => {
|
|||||||
response.send(html);
|
response.send(html);
|
||||||
});
|
});
|
||||||
|
|
||||||
server.listen({ port: 5010 }, (error) => {
|
server.listen({ port: 5012 }, (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
void logger.error("instantiate server", error);
|
void logger.error("instantiate server", error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
void logger.log("debug", "Server listening on port 5010.");
|
void logger.log("debug", "Server listening on port 5012.");
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user