Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
e1c8b72
Merge pull request #25 from TechnologyEnhancedLearning/master
Phil-NHS May 6, 2025
64c6616
feat(button): button with logger squash me
Phil-NHS May 8, 2025
4ba0d06
feat(button): test cicd
Phil-NHS May 12, 2025
45d8567
feat(button): yml
Phil-NHS May 12, 2025
b101e0d
feat(button): test route
Phil-NHS May 12, 2025
cf1dc99
feat(button): speach marks
Phil-NHS May 12, 2025
060fab2
feat(button): cicd test
Phil-NHS May 12, 2025
871d1cb
feat(button): previous path loc
Phil-NHS May 12, 2025
a0b9e9a
feat(button): build type
Phil-NHS May 12, 2025
574ddf3
feat(button): yml err
Phil-NHS May 12, 2025
8890eda
feat(button): caps
Phil-NHS May 12, 2025
aa68b11
chore(release): 1.1.0-feat-button-for-cicd-testing.1 [skip ci]
semantic-release-bot May 12, 2025
f83fa0d
feat(button): e2e cicd
Phil-NHS May 12, 2025
111a0af
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 12, 2025
c90f8c9
feat(button): cicd appsettings
Phil-NHS May 13, 2025
022d3e1
feat(button): little change
Phil-NHS May 13, 2025
5f879b5
feat(button): missing package
Phil-NHS May 13, 2025
67406f8
feat(button): route fix for appsettings
Phil-NHS May 13, 2025
131bbeb
feat(button): cicd
Phil-NHS May 13, 2025
6c850db
feat(button): missing versions
Phil-NHS May 13, 2025
75e414b
feat(button): not getting appsettings cicd
Phil-NHS May 13, 2025
d03697d
feat(button): comments out of e2e json
Phil-NHS May 13, 2025
50e40c6
feat(button): quick check
Phil-NHS May 13, 2025
02e66b8
feat(button): secret accessible
Phil-NHS May 13, 2025
07f4abf
feat(button): baseurl encode appsettings next
Phil-NHS May 13, 2025
782d223
feat(button): test
Phil-NHS May 13, 2025
b1c480f
feat(button: yml comment)
Phil-NHS May 13, 2025
c8f5772
feat(button): test yml
Phil-NHS May 13, 2025
db2829a
feat(button): bad commit squash
Phil-NHS May 13, 2025
f8c4a03
feat(button): continue on error
Phil-NHS May 13, 2025
de2e4c4
feat(button): data not exposed
Phil-NHS May 13, 2025
7b163dc
feat(button): what sticks
Phil-NHS May 13, 2025
ee875ce
feat(button): squash later
Phil-NHS May 13, 2025
b9e2de8
feat(button): p go
Phil-NHS May 13, 2025
c723135
feat(button): seeing it
Phil-NHS May 13, 2025
5064e1c
feat(button): in trigger yml
Phil-NHS May 13, 2025
eb65a6d
feat(button): doesnt run in triggered
Phil-NHS May 13, 2025
cc18ec0
feat(button): secrets declared differently in triggered
Phil-NHS May 13, 2025
1c88c7e
feat(button): declared higher
Phil-NHS May 13, 2025
232af52
feat(button): passing secret to reuseable-ci
Phil-NHS May 13, 2025
bcce28f
feat(button): cicd
Phil-NHS May 14, 2025
7c96522
feat(button): strange undetectable yml issue maybe
Phil-NHS May 14, 2025
81a03e3
feat(button): pseudo code
Phil-NHS May 14, 2025
1fe1a3a
feat(button): squash later
Phil-NHS May 14, 2025
c852a5c
feat(button): spam cicd
Phil-NHS May 14, 2025
2868f4c
feat(button): push while listen
Phil-NHS May 14, 2025
4c90c6a
feat(button): resusable ci
Phil-NHS May 14, 2025
66f0416
feat(button): explicity headless setting defaulting to false
Phil-NHS May 14, 2025
5bd2e0e
feat(button): props
Phil-NHS May 14, 2025
838e3dd
feat(button): stop e2e building just needs to test
Phil-NHS May 14, 2025
938e8ce
feat(button): really
Phil-NHS May 14, 2025
fc63f71
feat(button): just declare accept extra build
Phil-NHS May 14, 2025
57208f4
feat(button): shouldnt need it
Phil-NHS May 14, 2025
54e9c57
feat(button): go
Phil-NHS May 14, 2025
b2b2a80
feat(button) jgff
Phil-NHS May 14, 2025
8b41944
feat(button): squash
Phil-NHS May 14, 2025
443e8d9
feat(button): squashing
Phil-NHS May 14, 2025
d1bfe10
chore(release): 1.1.0-feat-button-for-cicd-testing.2 [skip ci]
semantic-release-bot May 14, 2025
8588a07
feat(button): propograte changes
Phil-NHS May 14, 2025
f6d349e
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 14, 2025
de724a4
chore(release): 1.1.0-feat-button-for-cicd-testing.3 [skip ci]
semantic-release-bot May 14, 2025
a1cc496
feat(button): appsettings production
Phil-NHS May 14, 2025
4ed7fdb
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 14, 2025
66b1292
feat(button): dont test against prod appsetting yet
Phil-NHS May 14, 2025
eedcc25
feat(button): cicds
Phil-NHS May 14, 2025
db4c03b
chore(release): 1.1.0-feat-button-for-cicd-testing.4 [skip ci]
semantic-release-bot May 14, 2025
b7d2416
feat(button): coverlet
Phil-NHS May 14, 2025
3d6f3ba
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 14, 2025
fcbe55e
chore(release): 1.1.0-feat-button-for-cicd-testing.5 [skip ci]
semantic-release-bot May 14, 2025
af7eea3
feat(button): luck
Phil-NHS May 14, 2025
c2a0eff
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 14, 2025
5b182b2
feat(button): odd
Phil-NHS May 14, 2025
596fb2b
chore(release): 1.1.0-feat-button-for-cicd-testing.6 [skip ci]
semantic-release-bot May 14, 2025
49bbb83
feat(button): deploy to report site
Phil-NHS May 14, 2025
2e0942c
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 14, 2025
ad32f69
feat(button): token
Phil-NHS May 14, 2025
9da3263
feat(button): token
Phil-NHS May 14, 2025
4b27e92
feat(button): seems bad
Phil-NHS May 14, 2025
f49bed7
feat(button): is it event set
Phil-NHS May 14, 2025
067e269
feat(button): try it
Phil-NHS May 14, 2025
3e54b2f
feat(button): in the meantime
Phil-NHS May 14, 2025
dc449de
feat(button): gogo
Phil-NHS May 14, 2025
ef73d87
feat(button): yml check
Phil-NHS May 14, 2025
75bbce2
feat(button): debug
Phil-NHS May 14, 2025
1b1f7ba
chore(release): 1.1.0-feat-button-for-cicd-testing.7 [skip ci]
semantic-release-bot May 14, 2025
8e6e2bd
feat(button): threshold
Phil-NHS May 15, 2025
e68efbe
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 15, 2025
4a7e76e
feat(button): gogo
Phil-NHS May 15, 2025
853d022
chore(release): 1.1.0-feat-button-for-cicd-testing.8 [skip ci]
semantic-release-bot May 15, 2025
66050b3
feat(button): runsetting go while local test
Phil-NHS May 15, 2025
2d7c7f5
feat(button): threshold
Phil-NHS May 15, 2025
1acd7f9
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 15, 2025
efbdb06
feat(button): combining test e2e unit coverage threshold report
Phil-NHS May 15, 2025
f32f96a
feat(button): htmlhtml typo
Phil-NHS May 15, 2025
bfef5f8
feat(button): layout fiddling
Phil-NHS May 15, 2025
252ac90
feat(button): disabled thresholds
Phil-NHS May 15, 2025
05bb41d
feat(button): adding to layout
Phil-NHS May 15, 2025
643add3
feat(button): xmysummary ci-reuseably yml
Phil-NHS May 15, 2025
b0f56b1
chore(release): 1.1.0-feat-button-for-cicd-testing.9 [skip ci]
semantic-release-bot May 15, 2025
ba7e990
feat(button): artifact by name
Phil-NHS May 15, 2025
1d0c02d
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 15, 2025
35f880c
chore(release): 1.1.0-feat-button-for-cicd-testing.10 [skip ci]
semantic-release-bot May 15, 2025
d81f0d7
feat(button): very low threshold till tests ready
Phil-NHS May 15, 2025
facdb72
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 15, 2025
ac54999
chore(release): 1.1.0-feat-button-for-cicd-testing.11 [skip ci]
semantic-release-bot May 15, 2025
6d6d64f
feat(button): layouts
Phil-NHS May 16, 2025
c776593
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 16, 2025
5dae265
chore(release): 1.1.0-feat-button-for-cicd-testing.12 [skip ci]
semantic-release-bot May 16, 2025
aff78a0
feat(button): loglevel before testing changes
Phil-NHS May 19, 2025
56939ea
feat(button): remove coverlet.collector and exclude some coverage
Phil-NHS May 19, 2025
284e9af
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 19, 2025
a0f0810
chore(release): 1.1.0-feat-button-for-cicd-testing.13 [skip ci]
semantic-release-bot May 19, 2025
e56e555
feat(button): fail check
Phil-NHS May 19, 2025
bde762b
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 19, 2025
296da4d
feat(button): routing for ci
Phil-NHS May 19, 2025
28c6bc4
feat(button): drop slash
Phil-NHS May 19, 2025
08fcb2b
feat(button): try using just built
Phil-NHS May 19, 2025
8ee1840
feat(button): debug routes
Phil-NHS May 19, 2025
57d5c75
feat(button): debug
Phil-NHS May 19, 2025
c0b3dd0
feat(button): debug
Phil-NHS May 19, 2025
5ee0f4a
feat(button): avoiding ignores
Phil-NHS May 19, 2025
36e0f1a
feat(button): add to msbuild with params
Phil-NHS May 20, 2025
aeafb9f
feat(button): semi not comma
Phil-NHS May 20, 2025
552dc73
feat(button): not worry about folder exclude atm
Phil-NHS May 20, 2025
154941b
feat(button): yml fix
Phil-NHS May 20, 2025
91df5c9
feat(button): use package ref
Phil-NHS May 20, 2025
3bc7897
feat(button): none verbose
Phil-NHS May 20, 2025
f7bea8b
chore(release): 1.1.0-feat-button-for-cicd-testing.14 [skip ci]
semantic-release-bot May 20, 2025
ae832d5
feat(refactor): direct build props
Phil-NHS May 20, 2025
c08796e
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 20, 2025
37f9e5c
chore(release): 1.1.0-feat-button-for-cicd-testing.15 [skip ci]
semantic-release-bot May 20, 2025
4e65815
feat(button): Refactoring and nhsukfrontend version
Phil-NHS May 20, 2025
f4898b8
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 20, 2025
54571ff
feat(button): need to centralise css creation and target showcase
Phil-NHS May 20, 2025
d7911d0
chore(release): 1.1.0-feat-button-for-cicd-testing.16 [skip ci]
semantic-release-bot May 20, 2025
7eaed95
feat(button): centralise node
Phil-NHS May 21, 2025
df526bb
feat(button): node changes this time
Phil-NHS May 21, 2025
edfd0ef
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 21, 2025
71d6b23
feat(button): relative routes in csproj
Phil-NHS May 21, 2025
9806216
feat(button): works locally
Phil-NHS May 21, 2025
3f48911
chore(release): 1.1.0-feat-button-for-cicd-testing.17 [skip ci]
semantic-release-bot May 21, 2025
5b910fc
feat(button): npm at solution level
Phil-NHS May 21, 2025
1861ec8
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 21, 2025
a743354
chore(release): 1.1.0-feat-button-for-cicd-testing.18 [skip ci]
semantic-release-bot May 21, 2025
f913e27
feat(button): build solution to trigger node
Phil-NHS May 22, 2025
2bc95fa
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 22, 2025
c314da0
chore(release): 1.1.0-feat-button-for-cicd-testing.19 [skip ci]
semantic-release-bot May 22, 2025
bf6f327
feat(button): package version dev
Phil-NHS May 22, 2025
bbbae8d
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 22, 2025
7184d27
chore(release): 1.1.0-feat-button-for-cicd-testing.20 [skip ci]
semantic-release-bot May 22, 2025
07ce5f5
feat(button): just home link
Phil-NHS May 22, 2025
41d17f2
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 22, 2025
08ac836
chore(release): 1.1.0-feat-button-for-cicd-testing.21 [skip ci]
semantic-release-bot May 22, 2025
4aa11aa
feat(button): scattershot
Phil-NHS May 22, 2025
1e8ccd2
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 22, 2025
31323a7
chore(release): 1.1.0-feat-button-for-cicd-testing.22 [skip ci]
semantic-release-bot May 22, 2025
a7c2227
feat(button): home
Phil-NHS May 22, 2025
4524a80
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 22, 2025
7e37cd4
chore(release): 1.1.0-feat-button-for-cicd-testing.23 [skip ci]
semantic-release-bot May 22, 2025
1d591e0
feat(button): nicer breaking
Phil-NHS May 22, 2025
ac769e1
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 22, 2025
5e72940
chore(release): 1.1.0-feat-button-for-cicd-testing.24 [skip ci]
semantic-release-bot May 22, 2025
fd58121
feat(button): refactor
Phil-NHS May 23, 2025
e829e94
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 23, 2025
8397733
chore(release): 1.1.0-feat-button-for-cicd-testing.25 [skip ci]
semantic-release-bot May 23, 2025
d1480dd
feat(button): qqqq tidying
Phil-NHS May 23, 2025
33df9d4
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 23, 2025
a0e8700
chore(release): 1.1.0-feat-button-for-cicd-testing.26 [skip ci]
semantic-release-bot May 23, 2025
21012a5
feat(button): cicd tidy up
Phil-NHS May 23, 2025
65dc263
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 23, 2025
74e62b7
chore(release): 1.1.0-feat-button-for-cicd-testing.27 [skip ci]
semantic-release-bot May 23, 2025
ae3110e
feat(button): readme
Phil-NHS May 23, 2025
73dd526
feat(button): readme
Phil-NHS May 23, 2025
035c00f
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 23, 2025
3e5f6b9
chore(release): 1.1.0-feat-button-for-cicd-testing.28 [skip ci]
semantic-release-bot May 23, 2025
4a7ce57
feat(button): cicd release script
Phil-NHS May 27, 2025
b915ad8
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 27, 2025
db7e3fb
chore(release): 1.1.0-feat-button-for-cicd-testing.29 [skip ci]
semantic-release-bot May 27, 2025
0d3d3b4
feat(button): cicd for pr checks
Phil-NHS May 27, 2025
a70f5d3
Merge branch 'feat-button-for-cicd-testing' of https://github.com/Tec…
Phil-NHS May 27, 2025
66a634e
feat(button): cicd no id on job
Phil-NHS May 27, 2025
2595414
feat(button): having a solution release build as a check so including…
Phil-NHS May 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-reportgenerator-globaltool": {
"version": "5.4.7",
"commands": [
"reportgenerator"
],
"rollForward": false
}
}
}
2 changes: 2 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
Test it here too
https://technologyenhancedlearning.github.io/GitPageBlazorWASM-TestGHPage/
check version matches branch name and pullrequest release
- maybe a rule that any introduced css for example if bringing in an enum. needs to be refactored to nhse-tel? so tel-nhse is source of truth on all things css


## TODO: About
- SO FAR no js controllers are not going to be covered in testing in the package it will be done by how used in LH
Expand Down
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: 2
updates:
# Configuration for GitPageBlazorWASMProgressive
- package-ecosystem: "nuget"
directory: "/"
schedule:
Expand All @@ -9,7 +8,7 @@ updates:
target-branch: "Automatic_version_update_dependabot"

- package-ecosystem: "npm"
directory: "/TELBlazor/TELBlazor.Components"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 100
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# The intention is minor and patch should be merged into the dependabot branch automatically
# qqqq normal pr checks should be used either by the pull-request script, the checks set up in git, or by referencing the checks from another workflow here

name: Dependabot Auto-Merge

Expand All @@ -12,7 +11,7 @@ permissions:
pull-requests: write

jobs:
# qqqq need branch protection rules to ensure checks passed before this runs and ensure its passed
# works alongside branch protection rules
auto-merge-minor-and-patch:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
Expand Down
90 changes: 77 additions & 13 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ permissions:
env:

# Permission

# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Try other token so semver has the ability to add comments
# Need more permissive token
GITHUB_TOKEN: ${{ secrets.NUGETKEY }}
PACKAGES_TOKEN: ${{ secrets.NUGETKEY }}
GITHUB_USERNAME: "Phil-NHS"
Expand All @@ -27,6 +24,7 @@ env:
# Build Set Up
USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE: false
DISABLE_PACKAGE_GENERATION: false
E2E_TRACING_ENABLED: false

jobs:

Expand All @@ -35,7 +33,17 @@ jobs:
uses: ./.github/workflows/reuseable-ci-checks.yml
with:
runall: true

secrets:
UNITTESTS_APPSETTINGS_DEVELOPMENT: ${{ secrets.UNITTESTS_APPSETTINGS_DEVELOPMENT }}
WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT: ${{ secrets.WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT }}
WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT: ${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT }}
WASMSERVERHOST_APPSETTINGS_DEVELOPMENT: ${{ secrets.WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}
PACKAGES_TOKEN: ${{secrets.NUGETKEY }}
# UNITTESTS_APPSETTINGS_PRODUCTION: ${{ secrets.UNITTESTS_APPSETTINGS_PRODUCTION }}
# WASMSTATICCLIENT_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSTATICCLIENT_APPSETTINGS_PRODUCTION }}
# WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION }}
# WASMSERVERHOST_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSERVERHOST_APPSETTINGS_PRODUCTION }}


# Now we've done due diligence
# The checks have been allowed to run if the workflow fails so if there a multiple fails we know.
Expand Down Expand Up @@ -68,9 +76,6 @@ jobs:
@semantic-release/github
echo "Semantic Release packages installed."
npm ls --depth=0 # Debug: List installed packages




- name: Run semantic version (None Blocking)
run: |
Expand Down Expand Up @@ -143,6 +148,26 @@ jobs:
- name: Replace local environment variable in nuget config because cant provide it as a parameter
run: sed -i "s|%TELBlazorPackageSource%|$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH|g" nuget.config

- name: Create appsettings development from secrets
run: |
declare -A paths
paths["./TELBlazor.Components.UnitTests/appsettings.Development.json"]='${{ secrets.UNITTESTS_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Development.json"]='${{ secrets.WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Development.json"]='${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Development.json"]='${{ secrets.WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}'

paths["./TELBlazor.Components.UnitTests/appsettings.Production.json"]='${{ secrets.UNITTESTS_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Production.json"]='${{ secrets.WASMSTATICCLIENT_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Production.json"]='${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Production.json"]='${{ secrets.WASMSERVERHOST_APPSETTINGS_PRODUCTION }}'


for path in "${!paths[@]}"; do
mkdir -p "$(dirname "$path")"
printf '%s' "${paths[$path]}" > "$path"
done


- name: Clean lock files because the newly generated package file will supersede the locks
run: |
find . -name "packages.lock.json" -type f -exec rm -f {} \;
Expand All @@ -153,7 +178,6 @@ jobs:
node-version: '20'

- name: Install npm packages so we have gulp for retrieving TEL Frontend Css
working-directory: ./TELBlazor.Components
run: npm ci
#CI is an install that adheres to package-lock

Expand Down Expand Up @@ -185,6 +209,7 @@ jobs:
DEV_TELBLAZOR_PACKAGE_VERSION: ${{ needs.generate-dev-semantic-version.outputs.dev-package-version }}

steps:

- name: Checkout Code
uses: actions/checkout@v4

Expand All @@ -208,7 +233,25 @@ jobs:
- name: debug DEV_TELBLAZOR_PACKAGE_VERSION
run: |
echo "DEV_TELBLAZOR_PACKAGE_VERSION $DEV_TELBLAZOR_PACKAGE_VERSION"


- name: Create appsettings development from secrets
run: |
declare -A paths
paths["./TELBlazor.Components.UnitTests/appsettings.Development.json"]='${{ secrets.UNITTESTS_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Development.json"]='${{ secrets.WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Development.json"]='${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Development.json"]='${{ secrets.WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}'

paths["./TELBlazor.Components.UnitTests/appsettings.Production.json"]='${{ secrets.UNITTESTS_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Production.json"]='${{ secrets.WASMSTATICCLIENT_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Production.json"]='${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Production.json"]='${{ secrets.WASMSERVERHOST_APPSETTINGS_PRODUCTION }}'

for path in "${!paths[@]}"; do
mkdir -p "$(dirname "$path")"
printf '%s' "${paths[$path]}" > "$path"
done

- name: Clean lock files because the newly generated package file will superseed the locks
run: |
echo "Listing packages.lock.json files:"
Expand All @@ -220,7 +263,26 @@ jobs:
echo "Listing packages.lock.json files:"
find . -name "packages.lock.json" -type f -print

- name: Set up Node.js so we have gulp for retrieving TEL Frontend Css
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install npm packages so we have gulp for retrieving TEL Frontend Css
run: npm ci

- name: Build solution without generating new package
env:
#Overwrite package generation
DISABLE_PACKAGE_GENERATION: true
run: |
dotnet build TELBlazor.sln -c Release \
/p:TELBlazorPackageVersion=$DEV_TELBLAZOR_PACKAGE_VERSION \
/p:NupkgOutputPath=$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH \
/p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \
/p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
/p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
/p:E2ETracingEnabled=$E2E_TRACING_ENABLED

- name: Publish WasmStaticClient
run: |
Expand All @@ -247,12 +309,14 @@ jobs:
ARTIFACT_LIST=$(gh api "repos/TechnologyEnhancedLearning/TELBlazor/actions/runs/${GITHUB_RUN_ID}/artifacts")
# Echo the entire artifact list for debugging purposes
echo "Artifact List: $ARTIFACT_LIST"
# Extract the download URL from the artifact list (first artifact in the list)
#ARTIFACT_URL=$(echo "$ARTIFACT_LIST" | jq -r '.artifacts[0].archive_download_url')
ARTIFACT_URL=$(echo "$ARTIFACT_LIST" | jq -r '.artifacts[0].url')

# Change this line to select by name instead of position
ARTIFACT_URL=$(echo "$ARTIFACT_LIST" | jq -r '.artifacts[] | select(.name=="published-telblazor-components-showcase-wasmstaticclient-using-dev-package-${{env.DEV_TELBLAZOR_PACKAGE_VERSION}}") | .url')

# Echo the artifact URL to confirm
echo "Artifact URL: $ARTIFACT_URL"
echo "artifact_url=$ARTIFACT_URL" >> $GITHUB_ENV


- name: Trigger workflow in TELBlazor-DevShowCase repo
run: |
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# qqqq to do

name: Pull Request Checks

on:
Expand All @@ -11,4 +9,17 @@ jobs:
name: Pull Request run CI Checks
uses: ./.github/workflows/reuseable-ci-checks.yml
with:
runall: true
runall: true
secrets:
UNITTESTS_APPSETTINGS_DEVELOPMENT: ${{ secrets.UNITTESTS_APPSETTINGS_DEVELOPMENT }}
WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT: ${{ secrets.WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT }}
WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT: ${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT }}
WASMSERVERHOST_APPSETTINGS_DEVELOPMENT: ${{ secrets.WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}
PACKAGES_TOKEN: ${{secrets.NUGETKEY }}

UNITTESTS_APPSETTINGS_PRODUCTION: ${{ secrets.UNITTESTS_APPSETTINGS_PRODUCTION }}
WASMSTATICCLIENT_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSTATICCLIENT_APPSETTINGS_PRODUCTION }}
WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION }}
WASMSERVERHOST_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSERVERHOST_APPSETTINGS_PRODUCTION }}


88 changes: 80 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ permissions:
env:

# Permission

# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Try other token so semver has the ability to add comments
# Using key with more permissions
GITHUB_TOKEN: ${{ secrets.NUGETKEY }}
PACKAGES_TOKEN: ${{ secrets.NUGETKEY }}
GITHUB_USERNAME: "Phil-NHS"
Expand All @@ -26,6 +23,7 @@ env:
# Build Set Up
USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE: false
DISABLE_PACKAGE_GENERATION: false
E2E_TRACING_ENABLED: false

jobs:
generate-semantic-version:
Expand Down Expand Up @@ -103,6 +101,24 @@ jobs:
- name: Replace local environment variable in nuget config because cant provide it as a parameter
run: sed -i "s|%TELBlazorPackageSource%|$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH|g" nuget.config

- name: Create appsettings development from secrets
run: |
declare -A paths
paths["./TELBlazor.Components.UnitTests/appsettings.Development.json"]='${{ secrets.UNITTESTS_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Development.json"]='${{ secrets.WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Development.json"]='${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Development.json"]='${{ secrets.WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}'

paths["./TELBlazor.Components.UnitTests/appsettings.Production.json"]='${{ secrets.UNITTESTS_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Production.json"]='${{ secrets.WASMSTATICCLIENT_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Production.json"]='${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Production.json"]='${{ secrets.WASMSERVERHOST_APPSETTINGS_PRODUCTION }}'

for path in "${!paths[@]}"; do
mkdir -p "$(dirname "$path")"
printf '%s' "${paths[$path]}" > "$path"
done

- name: Clean lock files because the newly generated package file will supersede the locks
run: |
find . -name "packages.lock.json" -type f -exec rm -f {} \;
Expand All @@ -114,18 +130,34 @@ jobs:
node-version: '20'

- name: Install npm packages so we have gulp for retrieving TEL Frontend Css
working-directory: ./TELBlazor.Components
run: npm ci
#CI is an install with adhering to package-lock

- name: Build solution without generating new package
env:
#Overwrite package generation
DISABLE_PACKAGE_GENERATION: true
run: |
dotnet build TELBlazor.sln -c Release \
/p:TELBlazorPackageVersion=$TELBLAZOR_PACKAGE_VERSION \
/p:NupkgOutputPath=$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH \
/p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \
/p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
/p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
/p:E2ETracingEnabled=$E2E_TRACING_ENABLED

- name: Build and pack TELBlazor.Components
env:
DISABLE_PACKAGE_GENERATION: false
run: |
dotnet build TELBlazor.Components -c Release \
/p:TELBlazorPackageVersion=$TELBLAZOR_PACKAGE_VERSION \
/p:NupkgOutputPath=$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH \
/p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \
/p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION

/p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
/p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
/p:E2ETracingEnabled=$E2E_TRACING_ENABLED

- name: Publish to TELBlazor.Components Package
run: |
dotnet nuget push "$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH/TELBlazor.Components.*.nupkg" \
Expand Down Expand Up @@ -160,7 +192,26 @@ jobs:
sed -i "s|%GITHUB_USERNAME%|$GITHUB_USERNAME|g" nuget.config
sed -i "s|%GITHUB_PACKAGES_TOKEN%|$PACKAGES_TOKEN |g" nuget.config



- name: Create appsettings development from secrets
run: |
declare -A paths
paths["./TELBlazor.Components.UnitTests/appsettings.Development.json"]='${{ secrets.UNITTESTS_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Development.json"]='${{ secrets.WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Development.json"]='${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Development.json"]='${{ secrets.WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}'

paths["./TELBlazor.Components.UnitTests/appsettings.Production.json"]='${{ secrets.UNITTESTS_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Production.json"]='${{ secrets.WASMSTATICCLIENT_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Production.json"]='${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION }}'
paths["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Production.json"]='${{ secrets.WASMSERVERHOST_APPSETTINGS_PRODUCTION }}'


for path in "${!paths[@]}"; do
mkdir -p "$(dirname "$path")"
printf '%s' "${paths[$path]}" > "$path"
done

- name: Clean lock files because the newly generated package file will supersede the locks
run: |
echo "Listing packages.lock.json files:"
Expand All @@ -173,6 +224,27 @@ jobs:
find . -name "packages.lock.json" -type f -print


- name: Set up Node.js so we have gulp for retrieving TEL Frontend Css
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install npm packages so we have gulp for retrieving TEL Frontend Css
run: npm ci

- name: Build solution without generating new package
env:
#Overwrite package generation
DISABLE_PACKAGE_GENERATION: true
run: |
dotnet build TELBlazor.sln -c Release \
/p:TELBlazorPackageVersion=$DEV_TELBLAZOR_PACKAGE_VERSION \
/p:NupkgOutputPath=$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH \
/p:UseTELBlazorComponentsProjectReference=$USE_TEL_BLAZOR_COMPONENTS_PROJECT_REFERENCE \
/p:TELBlazorPackageSource=$TELBLAZOR_PACKAGE_SOURCE \
/p:DisablePackageGeneration=$DISABLE_PACKAGE_GENERATION \
/p:E2ETracingEnabled=$E2E_TRACING_ENABLED

- name: Publish WasmStaticClient TELBlazor ShowCase
run: |
dotnet publish ./TELBlazor.Components.ShowCase.WasmStaticClient/TELBlazor.Components.ShowCase.WasmStaticClient.csproj --configuration Release \
Expand Down
Loading
Loading