From 4502f687cdbfc862d33b434df736011f15cd764b Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Sat, 20 Jul 2024 23:42:49 -0300 Subject: [PATCH] Run retest with sample on all platforms --- .github/workflows/build.yml | 33 ++++++--------------------------- .github/workflows/publish.yml | 6 +++++- .netconfig | 8 ++------ 3 files changed, 13 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de732f2..0bf45f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,47 +34,26 @@ defaults: shell: bash jobs: - os-matrix: - runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.lookup.outputs.matrix }} - steps: - - name: ๐Ÿค˜ checkout - uses: actions/checkout@v4 - - - name: ๐Ÿ”Ž lookup - id: lookup - shell: pwsh - run: | - $path = './.github/workflows/os-matrix.json' - $os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' } - echo "matrix=$os" >> $env:GITHUB_OUTPUT - build: needs: os-matrix name: build-${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }} + os: [ 'windows-latest', 'ubuntu-latest', 'macOS-latest' ] steps: - name: ๐Ÿค˜ checkout uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - name: ๐Ÿ™ build run: dotnet build -m:1 -bl:build.binlog - - name: โš™ GNU grep - if: matrix.os == 'macOS-latest' - run: | - brew install grep - echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile + - name: โš™ install + working-directory: bin + run: dotnet tool update -g dotnet-retest --prerelease --add-source . - name: ๐Ÿงช test - uses: ./.github/workflows/test + run: dotnet retest -- ./src/Sample/ - name: ๐Ÿ› logs uses: actions/upload-artifact@v3 @@ -87,7 +66,7 @@ jobs: - name: ๐Ÿš€ sleet env: SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }} - if: env.SLEET_CONNECTION != '' + if: env.SLEET_CONNECTION != '' && matrix.os == 'ubuntu-latest' run: | dotnet tool install -g --version 4.0.18 sleet sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 82ef81b..dccc1e1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,8 +29,12 @@ jobs: - name: ๐Ÿ™ build run: dotnet build -m:1 -bl:build.binlog + - name: โš™ install + working-directory: bin + run: dotnet tool update -g dotnet-retest --prerelease --add-source . + - name: ๐Ÿงช test - uses: ./.github/workflows/test + run: dotnet retest -- ./src/Sample/ - name: ๐Ÿ› logs uses: actions/upload-artifact@v3 diff --git a/.netconfig b/.netconfig index 551c03e..441bb36 100644 --- a/.netconfig +++ b/.netconfig @@ -34,9 +34,7 @@ weak [file ".github/workflows/build.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml - sha = 65f89e06ed7b2ac33ed3b729adc865b7076840d8 - etag = 20ef46203325f5b3d06a991f8b38c24bcea49fd74d39062a62003448e2dd8b0a - weak + skip [file ".github/workflows/changelog.config"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config sha = 055a8b7c94b74ae139cce919d60b83976d2a9942 @@ -59,9 +57,7 @@ weak [file ".github/workflows/publish.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml - sha = 40ee833a83d843c242914599e2635ca9a05aa837 - etag = 105db682c332b2bb0873e60a7d2da45b00fe7d83da0f0e7dbf9a84bc5be77c25 - weak + skip [file ".github/workflows/test/action.yml"] url = https://github.com/devlooped/oss/blob/main/.github/workflows/test/action.yml sha = 9a1b07589b9bde93bc12528e9325712a32dec418