generated from NHSDigital/nhs-notify-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCM-5100: Update scripts from template repo
- Loading branch information
Showing
92 changed files
with
3,079 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll | ||
{ | ||
"name": "Jekyll", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye", | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Uncomment the next line to run commands after the container is created. | ||
"postCreateCommand": "zsh scripts/devcontainer/postcreatecommand.sh", | ||
"postStartCommand": "zsh scripts/devcontainer/poststartcommand.sh", | ||
"forwardPorts": [4000], | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["README.md", ".github/SECURITY.md", "docs/index.md"] | ||
}, | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"autoOpenWorkspace.enableAutoOpenIfSingleWorkspace": true, | ||
"editor.formatOnSave": true, | ||
"files.insertFinalNewline": true, | ||
"[makefile]": { | ||
"editor.insertSpaces": false, | ||
"editor.detectIndentation": false | ||
} | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"zoma.vscode-auto-open-workspace", | ||
"alefragnani.bookmarks", | ||
"davidanson.vscode-markdownlint", | ||
"dbaeumer.vscode-eslint", | ||
"donjayamanne.githistory", | ||
"eamodio.gitlens", | ||
"editorconfig.editorconfig", | ||
"esbenp.prettier-vscode", | ||
"github.codespaces", | ||
"github.github-vscode-theme", | ||
"github.remotehub", | ||
"github.vscode-github-actions", | ||
"github.vscode-pull-request-github", | ||
"hediet.vscode-drawio", | ||
"johnpapa.vscode-peacock", | ||
"mhutchie.git-graph", | ||
"ms-azuretools.vscode-docker", | ||
"ms-vscode-remote.remote-containers", | ||
"ms-vscode-remote.remote-wsl", | ||
"ms-vscode.hexeditor", | ||
"ms-vscode.live-server", | ||
"ms-vsliveshare.vsliveshare", | ||
"redhat.vscode-xml", | ||
"streetsidesoftware.code-spell-checker-british-english", | ||
"tamasfe.even-better-toml", | ||
"tomoki1207.pdf", | ||
"vscode-icons-team.vscode-icons", | ||
"vstirbu.vscode-mermaid-preview", | ||
"wayou.vscode-todo-highlight", | ||
"yzane.markdown-pdf", | ||
"yzhang.dictionary-completion", | ||
"yzhang.markdown-all-in-one", | ||
"joshx.workspace-terminals", | ||
"takumii.markdowntable" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/aws-cli:1": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": { | ||
"moby": true, | ||
"azureDnsAutoDetection": true, | ||
"installDockerBuildx": true, | ||
"installDockerComposeSwitch": true, | ||
"version": "latest", | ||
"dockerDashComposeVersion": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"nodeGypDependencies": true, | ||
"version": "lts", | ||
"nvmVersion": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/github-cli:1": { | ||
"installDirectlyFromGitHubRelease": true, | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": true, | ||
"configureZshAsDefaultShell": true, | ||
"installOhMyZsh": true, | ||
"installOhMyZshConfig": true, | ||
"upgradePackages": true, | ||
"username": "automatic", | ||
"userUid": "automatic", | ||
"userGid": "automatic" | ||
} | ||
} | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# NHS Notify Code Owners | ||
|
||
# Notify default owners | ||
* @rossbugginsnhs @m-houston @edmundcraske2-nhs @timireland | ||
|
||
# Codeowners must be final check | ||
/.github/CODEOWNERS @NHSDigital/nhs-notify-code-owners | ||
/CODEOWNERS @NHSDigital/nhs-notify-code-owners | ||
|
||
|
||
# Each NHS Notify repository should have clear code owners set. | ||
# Do not use GitHub team names, instead use the GitHub usernames | ||
# of the people who are responsible for the code maintenance. | ||
|
||
# This is a comment. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# @global-owner1 and @global-owner2 will be requested for | ||
# review when someone opens a pull request. | ||
# * @global-owner1 @global-owner2 | ||
|
||
# Order is important; the last matching pattern takes the most | ||
# precedence. When someone opens a pull request that only | ||
# modifies JS files, only @js-owner and not the global | ||
# owner(s) will be requested for a review. | ||
# *.js @js-owner #This is an inline comment. | ||
|
||
# You can also use email addresses if you prefer. They'll be | ||
# used to look up users just like we do for commit author | ||
# emails. | ||
# *.go [email protected] | ||
|
||
# Teams can be specified as code owners as well. Teams should | ||
# be identified in the format @org/team-name. Teams must have | ||
# explicit write access to the repository. In this example, | ||
# the octocats team in the octo-org organization owns all .txt files. | ||
# *.txt @octo-org/octocats | ||
|
||
# In this example, @doctocat owns any files in the build/logs | ||
# directory at the root of the repository and any of its | ||
# subdirectories. | ||
# /build/logs/ @doctocat | ||
|
||
# The `docs/*` pattern will match files like | ||
# `docs/getting-started.md` but not further nested files like | ||
# `docs/build-app/troubleshooting.md`. | ||
# docs/* [email protected] | ||
|
||
# In this example, @octocat owns any file in an apps directory | ||
# anywhere in your repository. | ||
# apps/ @octocat | ||
|
||
# In this example, @doctocat owns any file in the `/docs` | ||
# directory in the root of your repository and any of its | ||
# subdirectories. | ||
# /docs/ @doctocat | ||
|
||
# In this example, any change inside the `/scripts` directory | ||
# will require approval from @doctocat or @octocat. | ||
# /scripts/ @doctocat @octocat | ||
|
||
# In this example, @octocat owns any file in a `/logs` directory such as | ||
# `/build/logs`, `/scripts/logs`, and `/deeply/nested/logs`. Any changes | ||
# in a `/logs` directory will require approval from @octocat. | ||
# **/logs @octocat | ||
|
||
# In this example, @octocat owns any file in the `/apps` | ||
# directory in the root of your repository except for the `/apps/github` | ||
# subdirectory, as its owners are left empty. | ||
# /apps/ @octocat | ||
# /apps/github | ||
|
||
# In this example, @octocat owns any file in the `/apps` | ||
# directory in the root of your repository except for the `/apps/github` | ||
# subdirectory, as this subdirectory has its own owner @doctocat | ||
# /apps/ @octocat | ||
# /apps/github @doctocat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Build Docs" | ||
description: "build jekyll docs" | ||
inputs: | ||
version: | ||
description: "Version number" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Npm cli install | ||
working-directory: ./docs | ||
run: npm ci | ||
shell: bash | ||
- name: Setup Ruby | ||
uses: ruby/[email protected] | ||
with: | ||
ruby-version: "3.1" # Not needed with a .ruby-version file | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
cache-version: 0 # Increment this number if you need to re-download cached gems | ||
working-directory: "./docs" | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v5 | ||
- name: Build with Jekyll | ||
working-directory: ./docs | ||
# Outputs to the './_site' directory by default | ||
shell: bash | ||
run: make build BASE_URL="${{ steps.pages.outputs.base_path }}" VERSION="${{ inputs.version }}" | ||
#run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" | ||
env: | ||
JEKYLL_ENV: production | ||
- name: Upload artifact | ||
# Automatically uploads an artifact from the './_site' directory by default | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: "docs/_site/" | ||
name: jekyll-docs-${{ inputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.