Skip to content

Commit

Permalink
merge origin/main
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansell1 committed Jun 14, 2024
2 parents f0fc940 + 14ba71e commit 4dbd328
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 3 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
Expand All @@ -57,8 +61,33 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: "docs/_site/"
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: site
path: "docs/_site/"

sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download site artifacts
uses: actions/download-artifact@v4
with:
name: site
path: _site
- name: Display structure of downloaded files
run: ls -R
- 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 }}

# Deployment job
# Deployment job
deploy:
environment:
name: github-pages
Expand Down
3 changes: 2 additions & 1 deletion docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {},
"dependencies": {
"nhsuk-frontend": "^8.2.0"
}
}
}
13 changes: 13 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sonar.projectKey=NHSDigital_nhs-notify-web-cms
sonar.organization=nhsdigital

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=nhs-notify
#sonar.projectVersion=1.0


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

0 comments on commit 4dbd328

Please sign in to comment.