Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Commit 1a76e96

Browse files
jbardenjaybarden1
andauthored
fix: add scripts folder and update main.yml to use repo name as proje… (#1)
* fix: add scripts folder and update main.yml to use repo name as project name this will (hopefully) make the pipeline even more self-configuring * fix: tweak the repo name > solution file to enable debugging the value * fix: more debugging as I am confused the output appears to be similar to set_env_74c716eb-REDACTED-8bec-6df477b78f4f.slnx, not the repo name * Doh! - not . * fix: update to correct file name structure well, if my brain is in gear this time * fix: trying again - should replace the spaces this time * feature: GH Action chat with Copilot * doc:: misc file tweaks before continuing * feat: add preview and View/Delete buttons without functionality... that will come soon * feat: Add the view functionality * feat: implement the delete command * feature: add new duplicates switch, indexes etc --------- Co-authored-by: Jason Barden <jason.barden1@outlook.com>
1 parent 7d2b697 commit 1a76e96

26 files changed

Lines changed: 4915 additions & 102 deletions
Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build the OneDrive Client App
1+
name: Build the File App
22

33
on:
44
workflow_dispatch:
@@ -13,9 +13,9 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16-
SONAR_PROJECT: astar-dev-onedrive-sync-client
17-
AZURE_WEBAPP_NAME: astar-dev-onedrive-sync-client
18-
SOLUTION_FILE: AStar.Dev.OneDrive.Sync.Client.slnx
16+
SONAR_PROJECT: ${{ github.event.repository.name }}
17+
PASCAL_REPO_NAME: Will.Be.Set.By.Step
18+
SOLUTION_FILE: Will.Be.Set.slnx
1919
CONFIGURATION: Release
2020
DOTNET_CORE_VERSION: 10.0.100
2121
WORKING_DIRECTORY: src/
@@ -47,16 +47,47 @@ jobs:
4747
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.slnx') }}
4848
restore-keys: |
4949
${{ runner.os }}-nuget-
50+
51+
- name: PascalCase repo name with rules
52+
run: |
53+
raw="${{ github.event.repository.name }}"
54+
55+
# Split on '-' and PascalCase each segment, rejoin with '.'
56+
pascal=$(echo "$raw" | awk -F'-' '{
57+
OFS="."
58+
for (i=1; i<=NF; i++) {
59+
$i = toupper(substr($i,1,1)) substr($i,2)
60+
}
61+
print
62+
}')
63+
64+
# Adjust leading Astar → AStar
65+
pascal=$(echo "$pascal" | sed 's/^Astar/AStar/')
66+
67+
# Add suffix
68+
pascal="${pascal}.slnx"
69+
70+
echo "PASCAL_REPO_NAME=$pascal" >> $GITHUB_ENV
5071
51-
- name: Restore
52-
run: dotnet restore ${{ env.SOLUTION_FILE }}
72+
echo "SOLUTION_FILE=$pascal" >> $GITHUB_ENV
73+
74+
- name: PASCAL_REPO_NAME
75+
run: echo ${{ env.PASCAL_REPO_NAME }}
76+
77+
- name: SOLUTION_FILE
78+
run: echo ${{ env.SOLUTION_FILE }}
79+
80+
- name: Restore ${{ env.PASCAL_REPO_NAME }}
81+
run: dotnet restore ${{ env.PASCAL_REPO_NAME }}
5382

5483
- name: Build solution
5584
run: dotnet build ${{ env.SOLUTION_FILE }} --configuration Release
5685

86+
- run: echo "REPO_NAME=${{ github.event.repository.name }}" >> $GITHUB_ENV
87+
5788
- name: Run unit tests and collect coverage (XPlat)
5889
run: |
59-
dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory TestResults --filter "FullyQualifiedName!~Integration&FullyQualifiedName!~EndToEnd" ${{ env.SOLUTION_FILE }}
90+
dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory TestResults --filter "FullyQualifiedName!~Integration&FullyQualifiedName!~EndToEnd" ${{ env.SOLUTION_FILE }}.slnx
6091
6192
- name: Upload TestResults artifact (contains coverage)
6293
if: success() || failure()

0 commit comments

Comments
 (0)