Skip to content

Commit

Permalink
sonar configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
icyfry committed Sep 11, 2024
1 parent 6a0c4a3 commit 5883a94
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
s3-deploy:
build-deploy:
runs-on: ubuntu-latest
environment: prod
steps:
Expand All @@ -32,6 +32,12 @@ jobs:

- name: Building the project
run: pnpm run build:prod


- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Deploy static site to S3 bucket
run: aws s3 sync ./dist/ ${{ secrets.AWS_S3 }} --delete
run: aws s3 sync ./dist/ ${{ secrets.AWS_S3 }} --delete
10 changes: 8 additions & 2 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- develop

jobs:
s3-deploy:
build-deploy:
runs-on: ubuntu-latest
steps:

Expand All @@ -31,6 +31,12 @@ jobs:

- name: Building the project
run: pnpm run build:staging

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Deploy static site to S3 bucket
run: aws s3 sync ./dist/ s3://icyfry-website/staging --delete
run: aws s3 sync ./dist/ s3://icyfry-website/staging --delete
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Icyfry Website

[![Build and deploy prod version](https://github.com/icyfry/icyfry-website/actions/workflows/deploy-prod.yml/badge.svg)](https://github.com/icyfry/icyfry-website/actions/workflows/deploy-prod.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=icyfry_icyfry-website&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=icyfry_icyfry-website)
<img src="https://img.shields.io/github/languages/top/icyfry/icyfry-website" />

Source code of [icyfry.bzh](https://icyfry.bzh/)
Expand Down
7 changes: 7 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sonar.projectKey=icyfry_icyfry-website
sonar.organization=icyfry
sonar.sources=src
#sonar.tests=src/tests
#sonar.javascript.lcov.reportPaths=coverage/lcov.info
#sonar.coverage.exclusions=**/*.test.*
#sonar.exclusions=src/tests/*
6 changes: 3 additions & 3 deletions src/components/MyResume.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
<p>{{ personalInfo.contact.localisation }}</p>
<div class="social-links">
<a :href="sanitizeUrl(personalInfo.social.linkedin)" target="_blank">
<img src="/linkedin.png" alt="LinkedIn" class="social-icon">
<img src="/linkedin.png" alt="LinkedIn" class="social-icon" rel="noopener">
</a>
<a :href="sanitizeUrl(personalInfo.social.malt)" target="_blank">
<a :href="sanitizeUrl(personalInfo.social.malt)" target="_blank" rel="noopener">
<img src="/malt.png" alt="Malt" class="social-icon">
</a>
<a :href="sanitizeUrl(personalInfo.social.github)" target="_blank">
<a :href="sanitizeUrl(personalInfo.social.github)" target="_blank" rel="noopener">
<img src="/github.png" alt="GitHub" class="social-icon">
</a>
</div>
Expand Down

0 comments on commit 5883a94

Please sign in to comment.