Skip to content

Update sonar-project.properties #18

Update sonar-project.properties

Update sonar-project.properties #18

Workflow file for this run

name: CI and Docker Build
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
name: CI Build
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@v3.42.0
with:
# Repository path
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
# - run: npm run build --if-present
- run: node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage
- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
docker:
runs-on: ubuntu-latest
needs: build
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: olaekdahl/todos:${{ github.sha }}