Skip to content

Commit

Permalink
Update the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
anjula-sack committed Aug 15, 2023
1 parent 4011581 commit d37e52d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

services:
Expand All @@ -19,14 +18,22 @@ jobs:
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: mydatabase
POSTGRES_DB: mydatabase
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Code scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

- name: Use Node.js
uses: actions/setup-node@v3
Expand All @@ -47,7 +54,7 @@ jobs:
echo "DB_PASSWORD=password" >> .env
echo "DB_PORT=5432" >> .env
echo "SERVER_PORT=4000" >> .env
echo "JWT_SECRET=your_jwt_secret_key" >> .env
echo "JWT_SECRET=your_jwt_secret_key" >> .env
- name: Run tests
run: npm run test
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/sonar.yml

This file was deleted.

0 comments on commit d37e52d

Please sign in to comment.