From 0250be322b70bf413f17feac80a3c76c497a00f5 Mon Sep 17 00:00:00 2001 From: Petru Cervac Date: Sun, 23 Feb 2025 08:53:55 +0000 Subject: [PATCH 1/8] build: add reference to GitSnapshotter --- build.test/build.test.csproj | 3 ++- build/_build.csproj | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.test/build.test.csproj b/build.test/build.test.csproj index b61efab..55620da 100644 --- a/build.test/build.test.csproj +++ b/build.test/build.test.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable @@ -14,6 +14,7 @@ + diff --git a/build/_build.csproj b/build/_build.csproj index b9522d2..7c29141 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 CS0649;CS0169 enable From 1d11883e9eae8b4ae08bc1aa67f82f0b64cd077a Mon Sep 17 00:00:00 2001 From: Petru Cervac Date: Sun, 23 Feb 2025 08:56:49 +0000 Subject: [PATCH 2/8] build: add global.json --- global.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 0000000..a4effd9 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "sdk": { + "version": "9.0.102" + } +} \ No newline at end of file From 1332bcaae35d268922fea491c620fdf2dbf2ad0e Mon Sep 17 00:00:00 2001 From: Petru Cervac Date: Sun, 23 Feb 2025 09:00:45 +0000 Subject: [PATCH 3/8] ci: install dotnet 9 in pipeline --- .github/workflows/test-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index f2c2874..250f89e 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -95,7 +95,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-dotnet@v3 with: - dotnet-version: "8.x.x" + dotnet-version: "9.x.x" - name: "Cache: .nuke/temp, ~/.nuget/packages" uses: actions/cache@v3 with: From 14aa529d1d6f942490e538a5e91f0c62f716e3dd Mon Sep 17 00:00:00 2001 From: Petru Cervac Date: Sun, 23 Feb 2025 09:02:43 +0000 Subject: [PATCH 4/8] build: add rollForward --- global.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/global.json b/global.json index a4effd9..9cbe59b 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,6 @@ { "sdk": { - "version": "9.0.102" + "version": "9.0.102", + "rollForward": "latestFeature" } -} \ No newline at end of file +} From f145af97c20c080d2442c5a29a49ce2d3f2b25de Mon Sep 17 00:00:00 2001 From: Petru Cervac Date: Sun, 23 Feb 2025 09:06:10 +0000 Subject: [PATCH 5/8] ci: add nuget source --- .github/workflows/test-pr.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index 250f89e..84e912a 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -104,6 +104,12 @@ jobs: ~/.nuget/packages key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} - run: git switch -c test-branch - - run: dotnet restore + - run: | + dotnet nuget add source / + --name github / + --source https://nuget.pkg.github.com/BusHero/index.json / + --username BusHero / + --password ${{ secrets.GITHUB_TOKEN }} + dotnet restore - run: dotnet build --no-restore - run: dotnet test --no-build --no-restore From 5d33a10891c9e73776bae03c724035c1a4ef700a Mon Sep 17 00:00:00 2001 From: Petru Cervac Date: Sun, 23 Feb 2025 09:08:24 +0000 Subject: [PATCH 6/8] ci: update pipeline --- .github/workflows/test-pr.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index 84e912a..47fa438 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -90,10 +90,10 @@ jobs: name: Test nuke runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: "9.x.x" - name: "Cache: .nuke/temp, ~/.nuget/packages" @@ -105,10 +105,10 @@ jobs: key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} - run: git switch -c test-branch - run: | - dotnet nuget add source / - --name github / - --source https://nuget.pkg.github.com/BusHero/index.json / - --username BusHero / + dotnet nuget add source \ + --name github \ + --source https://nuget.pkg.github.com/BusHero/index.json \ + --username BusHero \ --password ${{ secrets.GITHUB_TOKEN }} dotnet restore - run: dotnet build --no-restore From b613caa96afd6171e0aeedca4f500cd64b94954c Mon Sep 17 00:00:00 2001 From: Petru Cervac Date: Sun, 23 Feb 2025 09:09:58 +0000 Subject: [PATCH 7/8] asd --- .github/workflows/test-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index 47fa438..316c881 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -106,8 +106,8 @@ jobs: - run: git switch -c test-branch - run: | dotnet nuget add source \ + https://nuget.pkg.github.com/BusHero/index.json \ --name github \ - --source https://nuget.pkg.github.com/BusHero/index.json \ --username BusHero \ --password ${{ secrets.GITHUB_TOKEN }} dotnet restore From 88c079b374081b3f8cf74b9abd946dfa6b8f2bfe Mon Sep 17 00:00:00 2001 From: Petru Cervac Date: Sun, 23 Feb 2025 09:11:27 +0000 Subject: [PATCH 8/8] asd --- .github/workflows/test-pr.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index 316c881..040601b 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -109,7 +109,8 @@ jobs: https://nuget.pkg.github.com/BusHero/index.json \ --name github \ --username BusHero \ - --password ${{ secrets.GITHUB_TOKEN }} + --password ${{ secrets.GITHUB_TOKEN }} \ + --store-password-in-clear-text dotnet restore - run: dotnet build --no-restore - run: dotnet test --no-build --no-restore