Skip to content

Commit 9243cb9

Browse files
committed
chore(docs): readme
2 parents fca200a + 7350e92 commit 9243cb9

File tree

26 files changed

+573
-1804
lines changed

26 files changed

+573
-1804
lines changed
Binary file not shown.

.github/workflows/dev.yml

Lines changed: 302 additions & 61 deletions
Large diffs are not rendered by default.

.github/workflows/pull_request.yml

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
name: Pull Request Checks
22

3-
on:
4-
pull_request:
5-
branches:
6-
- '**'
7-
3+
on: pull_request
84
jobs:
95

10-
11-
126
branch-name-check:
137
name: Enforce Branch Name Convention
148
runs-on: ubuntu-latest
15-
if: success() || failure()
169
steps:
1710
- name: Validate Branch Name
1811
run: |
@@ -28,59 +21,77 @@ jobs:
2821
echo " build-*, feat-*, fix-*, bugfix-*, hotfix-*, build-*, chore-*, ci-*, docs-*, perf-*, refactor-*, revert-*, style-*, test-*, sample-*, security-*, config-*, bugfix-*, hotfix-*"
2922
exit 1
3023
fi
31-
#continue-on-error: true
3224
33-
commitlint:
3425
# qqqq repo will need branch protection rules and PR Template
26+
commitlint:
27+
name: commitlint
3528
runs-on: ubuntu-latest
36-
if: success() || failure()
3729
steps:
3830
- uses: actions/checkout@v4
3931
with:
4032
fetch-depth: 0
4133
- uses: wagoid/commitlint-github-action@v5
4234
with:
4335
configFile: .commitlintrc.json
44-
#continue-on-error: true #we dont want to package etc if bad commits also pre-commit preferred
4536

4637

47-
gitguardian-scan:
48-
runs-on: ubuntu-latest
49-
if: success() || failure()
50-
steps:
51-
- uses: actions/checkout@v3
38+
# gitguardian-scan:
39+
# name: gitguardian
40+
# runs-on: ubuntu-latest
41+
# #if: success() || failure()
42+
# steps:
43+
# - uses: actions/checkout@v3
5244

53-
- name: GitGuardian Scan
54-
uses: GitGuardian/gg-shield-action@v1
55-
env:
56-
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
57-
#continue-on-error: true # we dont want secrets going further and the keys need to be changed if this is triggered
45+
# - name: GitGuardian Scan
46+
# uses: GitGuardian/gg-shield-action@v1
47+
# env:
48+
# GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
49+
# #continue-on-error: true # we dont want secrets going further and the keys need to be changed if this is triggered
5850

5951
Unit-Tests:
52+
name: todo unit tests
6053
runs-on: ubuntu-latest
61-
if: success() || failure()
6254
steps:
6355
- name: See other project pipeline for Tests
6456
run: echo "qqqq See other project pipeline for Tests this is a placeholder"
65-
#continue-on-error: true
6657

6758

6859
E2E-Tests:
60+
name: todo e2e tests
6961
runs-on: ubuntu-latest
70-
if: success() || failure()
7162
steps:
7263
- name: See other project pipeline for Tests
7364
run: echo "qqqq See other project pipeline for Tests this is a placeholder"
74-
#continue-on-error: true
65+
7566

7667
Code-Coverage:
68+
name: code coverage
7769
runs-on: ubuntu-latest
7870
steps:
7971
- name: Code Coverage
8072
run: echo "TODO Code Coverage"
81-
#continue-on-error: true
82-
8373

84-
85-
86-
74+
# All-Checks-Passed:
75+
# name: all checks passed
76+
# runs-on: ubuntu-latest
77+
# needs:
78+
# - branch-name-check
79+
# - commitlint
80+
# - gitguardian-scan
81+
# - Unit-Tests
82+
# - E2E-Tests
83+
# - Code-Coverage
84+
# #if: ${{ success() }}
85+
# steps:
86+
# - name: all checks passed steps
87+
# run: echo "allow all checks to run incase multiple fails then fail here"
88+
89+
# wanted to do it like this
90+
# Code-Coverage:
91+
# name: code coverage
92+
# runs-on: ubuntu-latest
93+
#if: success() || failure()
94+
# steps:
95+
# - name: Code Coverage
96+
# run: echo "TODO Code Coverage"
97+
#continue-on-error: true

.github/workflows/release.yml

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,29 +152,63 @@ jobs:
152152
with:
153153
global-json-file: global.json
154154

155+
- name: Remove Local PackageSettings (CI Only)
156+
run: rm -f PackageSettings.props.local
157+
155158
- name: Replace local environment variable in nuget config because cant provide it as a parameter
156159
run: |
160+
echo "sed -i \"s|%LocalPackagePath%|$BCL_Source|g\" nuget.config"
157161
sed -i "s|%LocalPackagePath%|$BCL_Source|g" nuget.config
158162
sed -i "s|%GITHUB_USERNAME%|$GITHUB_USERNAME|g" nuget.config
159163
sed -i "s|%GITHUB_PACKAGES_TOKEN%|$PACKAGES_TOKEN |g" nuget.config
160-
164+
165+
- name: debug BCL_VERSION
166+
run: |
167+
echo "BCL_VERSION $BCL_VERSION"
161168
162169
- name: Clean lock files because the newly generated package file will superseed the locks
163170
run: |
171+
echo "Listing packages.lock.json files:"
172+
find . -name "packages.lock.json" -type f -print
173+
echo ""
174+
echo "Deleting packages.lock.json files:"
164175
find . -name "packages.lock.json" -type f -exec rm -f {} \;
165-
166-
- name: Restore NuGet Packages for Specifically the BCL Package Library Project
167-
run: dotnet restore TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj
176+
177+
echo "Listing packages.lock.json files:"
178+
find . -name "packages.lock.json" -type f -print
168179
180+
- name: Build Shared Pages
181+
run: |
182+
dotnet build SharedPages -c Release \
183+
/p:BCLVersion=$BCL_VERSION \
184+
/p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \
185+
/p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \
186+
/p:GhPageRelease=false \
187+
/p:LocalPackagePath=$BCL_Source
188+
189+
# Blazor client so appsetting in wwwroot and public
190+
- name: Modify appsettings.json with hardcoded value
191+
run: |
192+
jq '.INDEPENDENT_CLIENT_GH_PAGES = "true"' TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json > tmp.json && mv tmp.json TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json
193+
194+
169195
- name: Create docs directory
170196
run: mkdir -p docs
171-
197+
198+
199+
200+
# Print the contents of appsettings.json inside 'TestHostPrerenderWASM.Client' folder
201+
# - name: Display appsettings.json content
202+
# run: cat TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json
203+
172204
- name: Publish client using client release .csproj logic
173205
run: |
174206
dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
175-
/p:IsLocalDev=$IS_LOCAL_DEV \
176207
/p:BCLVersion=$BCL_VERSION \
177-
/p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE
208+
/p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \
209+
/p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \
210+
/p:GhPageRelease=true \
211+
/p:LocalPackagePath=$BCL_Source
178212
179213
180214
# No this will be in the release branch that we do a prod wiki host

0 commit comments

Comments
 (0)