diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 179ca91..bb804da 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,9 +21,9 @@ jobs: strategy: matrix: dotnet: - - 8.0 # EOL: 2026-11-10 - - 7.0 # EOL: 2024-05-14 - - 6.0 # EOL: 2024-11-12 + - 8 # EOL: 2026-11-10 + - 7 # EOL: 2024-05-14 + - 6 # EOL: 2024-11-12 # version support doc: https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core steps: - uses: actions/checkout@v4 @@ -41,16 +41,16 @@ jobs: uses: actions/setup-dotnet@v4 id: setup with: - dotnet-version: ${{ matrix.dotnet }}.x + dotnet-version: ${{ matrix.dotnet }}.0.x - name: Create temporary global.json run: "echo '{\"sdk\":{\"version\": \"${{ steps.setup.outputs.dotnet-version }}\"}}' > ./global.json" working-directory: getargv.cs - name: Restore dependencies - run: dotnet restore -p:TargetFramework=net${{ matrix.dotnet }} + run: dotnet restore -p:TargetFramework=net${{ matrix.dotnet }}.0 working-directory: getargv.cs - name: Build - run: dotnet build --no-restore --framework net${{ matrix.dotnet }} + run: dotnet build --no-restore --framework net${{ matrix.dotnet }}.0 working-directory: getargv.cs - name: Test - run: dotnet test --no-build --verbosity normal --framework net${{ matrix.dotnet }} + run: dotnet test --no-build --verbosity normal --framework net${{ matrix.dotnet }}.0 working-directory: getargv.cs