feat: configure appsettings for CI by enabling database usage and setting SQLite
This commit is contained in:
@@ -11,6 +11,21 @@ jobs:
|
|||||||
- name: Checkout PR branch
|
- name: Checkout PR branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Configure appsettings for CI
|
||||||
|
run: |
|
||||||
|
# Find the appsettings.json file
|
||||||
|
APPSETTINGS_PATH="Webzine.WebApplication/appsettings.json"
|
||||||
|
|
||||||
|
# Backup original file
|
||||||
|
cp $APPSETTINGS_PATH $APPSETTINGS_PATH.bak
|
||||||
|
|
||||||
|
# Use jq to modify the JSON
|
||||||
|
jq '.UseDatabase = true | .IsSQLite = true' $APPSETTINGS_PATH > $APPSETTINGS_PATH.tmp
|
||||||
|
mv $APPSETTINGS_PATH.tmp $APPSETTINGS_PATH
|
||||||
|
|
||||||
|
echo "Updated appsettings.json:"
|
||||||
|
cat $APPSETTINGS_PATH
|
||||||
|
|
||||||
- name: Setup .NET 10
|
- name: Setup .NET 10
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user