Skip to content

Commit cf40796

Browse files
committed
🚧 Rename NebulaCheck => GalaxyCheck.Stable
Due to the .NET framework, we need to synthesize a different assembly so that GalaxyCheck can be used to test itself. The intention of this rename is to make this clear, and to expand the available samples of GalaxyCheck by making it more obvious that it's being used in its own test suite.
1 parent 0168747 commit cf40796

File tree

4 files changed

+26
-25
lines changed

4 files changed

+26
-25
lines changed

.github/workflows/dotnet.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
NUGET_TOKEN: ${{ secrets.NUGET_API_KEY }}
1717
DOTNET_CLI_TELEMETRY_OPTOUT: true
1818
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
19-
PRERELEASE_PACKABLE_PROJECTS: GalaxyCheck GalaxyCheck.Xunit GalaxyCheck.Xunit.CodeAnalysis NebulaCheck NebulaCheck.Xunit NebulaCheck.Xunit.CodeAnalysis
19+
PRERELEASE_PACKABLE_PROJECTS: GalaxyCheck GalaxyCheck.Xunit GalaxyCheck.Xunit.CodeAnalysis GalaxyCheck.Stable GalaxyCheck.Stable.Xunit GalaxyCheck.Stable.Xunit.CodeAnalysis
2020
PACKABLE_PROJECTS: GalaxyCheck GalaxyCheck.Xunit GalaxyCheck.Xunit.CodeAnalysis
2121

2222
jobs:
@@ -49,10 +49,10 @@ jobs:
4949
uses: actions/setup-dotnet@v1
5050
with:
5151
dotnet-version: 6.0.x
52-
- name: Make NebulaCheck
52+
- name: Make GalaxyCheck.Stable
5353
run: |
5454
ls
55-
bash ./scripts/makeNebulaCheck.sh
55+
bash ./scripts/makeGalaxyCheckStable.sh
5656
- name: Restore
5757
run: |
5858
for project in $PRERELEASE_PACKABLE_PROJECTS; do

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ __pycache__/
287287
*.odx.cs
288288
*.xsd.cs
289289

290-
src/NebulaCheck
291-
src/NebulaCheck.Xunit
290+
src/GalaxyCheck.Stable
291+
src/GalaxyCheck.Stable.Xunit
292+
src/GalaxyCheck.Stable.Xunit.CodeAnalysis
292293
**/__snapshots__/__mismatch__
293294
nupkg-prerelease/

scripts/makeGalaxyCheckStable.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
for replacers in "GalaxyCheck;GalaxyCheck.Stable" "GalaxyCheck.Xunit;GalaxyCheck.Stable.Xunit" "GalaxyCheck.Xunit.CodeAnalysis;GalaxyCheck.Stable.Xunit.CodeAnalysis"
4+
do
5+
arr=(${replacers//;/ })
6+
srcProjectName=${arr[0]}
7+
destProjectName=${arr[1]}
8+
9+
find ./src/${srcProjectName} -type d -print0 | while read -d $'\0' currFilename; do
10+
newFilename=$(echo "$currFilename" | sed "s/GalaxyCheck/GalaxyCheck.Stable/g")
11+
mkdir $newFilename
12+
done
13+
14+
find ./src/${srcProjectName} -type f -print0 | while read -d $'\0' currFilename; do
15+
newFilename=$(echo $currFilename | sed "s/GalaxyCheck/GalaxyCheck.Stable/g")
16+
cat $currFilename | sed "s/GalaxyCheck/GalaxyCheck.Stable/g" > $newFilename
17+
done
18+
19+
sed -i -e "s|https://github.com/nth-commit/GalaxyCheck.Stable|https://github.com/nth-commit/GalaxyCheck|g" ./src/${destProjectName}/${destProjectName}.csproj
20+
done

scripts/makeNebulaCheck.sh

-20
This file was deleted.

0 commit comments

Comments
 (0)