diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index f2c2874..040601b 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -90,12 +90,12 @@ 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: "8.x.x" + dotnet-version: "9.x.x" - name: "Cache: .nuke/temp, ~/.nuget/packages" uses: actions/cache@v3 with: @@ -104,6 +104,13 @@ 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 \ + https://nuget.pkg.github.com/BusHero/index.json \ + --name github \ + --username BusHero \ + --password ${{ secrets.GITHUB_TOKEN }} \ + --store-password-in-clear-text + dotnet restore - run: dotnet build --no-restore - run: dotnet test --no-build --no-restore 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 diff --git a/global.json b/global.json new file mode 100644 index 0000000..9cbe59b --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "9.0.102", + "rollForward": "latestFeature" + } +}