From 046682693fa00aab3d1447b3c7c2074a94546970 Mon Sep 17 00:00:00 2001 From: Laurents Meyer Date: Sun, 8 Oct 2023 18:39:10 +0200 Subject: [PATCH] Fix CI. --- .github/workflows/build.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6dd3a20..f9fe27fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,14 +11,14 @@ on: paths-ignore: - '**.md' env: + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true + DOTNET_CLI_TELEMETRY_OPTOUT: true mysqlCurrentSqlMode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION mysqlLegacySqlMode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION # Currently no ONLY_FULL_GROUP_BY, see #1167: mariadbSqlMode: STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION maxConnections: 512 - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true - DOTNET_CLI_TELEMETRY_OPTOUT: true - skipAllTests: false + skipAllTests: true skipWindowsTests: false jobs: BuildAndTest: @@ -40,7 +40,8 @@ jobs: - windows-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - name: Set additional variables shell: pwsh run: | @@ -88,6 +89,9 @@ jobs: echo "clientExecutable: ${{ env.clientExecutable }}" echo "clientCommandPrefix: ${{ env.clientCommandPrefix }}" echo "windowsUserTempLocation: ${{ env.windowsUserTempLocation }}" + + echo "github.event_name: ${{ github.event_name }}" + echo "github.repository: ${{ github.repository }}" - name: Cache - Database Image - Linux id: cache-databaseImage-linux uses: actions/cache@v3 @@ -292,9 +296,11 @@ jobs: dotnet test -c Release --no-build --logger "GitHubActions;report-warnings=false" test/EFCore.MySql.IntegrationTests NuGet: needs: BuildAndTest - if: github.event_name == 'push' && startsWith(github.repository, 'PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/') + if: github.event_name == 'push' && github.repository == 'PomeloFoundation/Pomelo.EntityFrameworkCore.MySql' runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v3 - name: Setup .NET SDK uses: actions/setup-dotnet@v3 with: @@ -312,7 +318,7 @@ jobs: $ciBuildOnly = $wipBuild -or ('${{ github.ref }}' -match '^refs/heads/(?:master|release/.*)$') $continuousIntegrationTimestamp = Get-Date -Format yyyyMMddHHmmss $buildSha = '${{ github.sha }}'.SubString(0, 7); - $pack = '$(buildAndTestSucceeded)' -eq "true" -and ($officialBuild -or $ciBuildOnly -or $wipBuild) + $pack = $officialBuild -or $ciBuildOnly $pushToAzureArtifacts = $pack $pushToMygetOrg = $pack