Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 3 additions & 11 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: Pull Request Checks

on:
pull_request:
branches:
- '**'
# branches:
# - '**'

jobs:



branch-name-check:
name: Enforce Branch Name Convention
runs-on: ubuntu-latest
Expand Down Expand Up @@ -75,12 +71,8 @@ jobs:

Code-Coverage:
runs-on: ubuntu-latest
if: success() || failure()
steps:
- name: Code Coverage
run: echo "TODO Code Coverage"
#continue-on-error: true





40 changes: 30 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,30 +152,50 @@ jobs:
with:
global-json-file: global.json

- name: Remove Local PackageSettings (CI Only)
run: rm -f PackageSettings.props.local

- name: Replace local environment variable in nuget config because cant provide it as a parameter
run: |
echo "sed -i \"s|%LocalPackagePath%|$BCL_Source|g\" nuget.config"
sed -i "s|%LocalPackagePath%|$BCL_Source|g" nuget.config
sed -i "s|%GITHUB_USERNAME%|$GITHUB_USERNAME|g" nuget.config
sed -i "s|%GITHUB_PACKAGES_TOKEN%|$PACKAGES_TOKEN |g" nuget.config


- name: debug BCL_VERSION
run: |
echo "BCL_VERSION $BCL_VERSION"

- name: Clean lock files because the newly generated package file will superseed the locks
run: |
echo "Listing packages.lock.json files:"
find . -name "packages.lock.json" -type f -print
echo ""
echo "Deleting packages.lock.json files:"
find . -name "packages.lock.json" -type f -exec rm -f {} \;

- name: Restore NuGet Packages for Specifically the BCL Package Library Project
run: dotnet restore TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj

- name: Create docs directory
run: mkdir -p docs

# Hardcode the INDEPENDENT_CLIENT_GH_PAGES value
# Blazor client so appsetting in wwwroot and public
echo "Listing packages.lock.json files:"
find . -name "packages.lock.json" -type f -print

- name: Build Shared Pages
run: |
dotnet build SharedPages -c Release \
/p:BCLVersion=$BCL_VERSION \
/p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \
/p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \
/p:GhPageRelease=false \
/p:LocalPackagePath=$BCL_Source

# Blazor client so appsetting in wwwroot and public
- name: Modify appsettings.json with hardcoded value
run: |
jq '.INDEPENDENT_CLIENT_GH_PAGES = "true"' TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json > tmp.json && mv tmp.json TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json



- name: Create docs directory
run: mkdir -p docs



# Print the contents of appsettings.json inside 'TestHostPrerenderWASM.Client' folder
# - name: Display appsettings.json content
Expand Down
Loading