Skip to content

Commit 31d848e

Browse files
committed
Run retest with sample on all platforms
1 parent 7eb00bc commit 31d848e

File tree

3 files changed

+13
-34
lines changed

3 files changed

+13
-34
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,26 @@ defaults:
3434
shell: bash
3535

3636
jobs:
37-
os-matrix:
38-
runs-on: ubuntu-latest
39-
outputs:
40-
matrix: ${{ steps.lookup.outputs.matrix }}
41-
steps:
42-
- name: 🤘 checkout
43-
uses: actions/checkout@v4
44-
45-
- name: 🔎 lookup
46-
id: lookup
47-
shell: pwsh
48-
run: |
49-
$path = './.github/workflows/os-matrix.json'
50-
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
51-
echo "matrix=$os" >> $env:GITHUB_OUTPUT
52-
5337
build:
5438
needs: os-matrix
5539
name: build-${{ matrix.os }}
5640
runs-on: ${{ matrix.os }}
5741
strategy:
5842
matrix:
59-
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
43+
os: [ 'windows-latest', 'ubuntu-latest', 'macOS-latest' ]
6044
steps:
6145
- name: 🤘 checkout
6246
uses: actions/checkout@v4
63-
with:
64-
submodules: recursive
65-
fetch-depth: 0
6647

6748
- name: 🙏 build
6849
run: dotnet build -m:1 -bl:build.binlog
6950

70-
- name: ⚙ GNU grep
71-
if: matrix.os == 'macOS-latest'
72-
run: |
73-
brew install grep
74-
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
51+
- name: ⚙ install
52+
working-directory: bin
53+
run: dotnet tool update -g dotnet-retest --prerelease --add-source .
7554

7655
- name: 🧪 test
77-
uses: ./.github/workflows/test
56+
uses: dotnet retest -- ./src/Sample/
7857

7958
- name: 🐛 logs
8059
uses: actions/upload-artifact@v3
@@ -87,7 +66,7 @@ jobs:
8766
- name: 🚀 sleet
8867
env:
8968
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
90-
if: env.SLEET_CONNECTION != ''
69+
if: env.SLEET_CONNECTION != '' && matrix.os == 'ubuntu-latest'
9170
run: |
9271
dotnet tool install -g --version 4.0.18 sleet
9372
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"

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ jobs:
2929
- name: 🙏 build
3030
run: dotnet build -m:1 -bl:build.binlog
3131

32+
- name: ⚙ install
33+
working-directory: bin
34+
run: dotnet tool update -g dotnet-retest --prerelease --add-source .
35+
3236
- name: 🧪 test
33-
uses: ./.github/workflows/test
37+
uses: dotnet retest -- ./src/Sample/
3438

3539
- name: 🐛 logs
3640
uses: actions/upload-artifact@v3

.netconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@
3434
weak
3535
[file ".github/workflows/build.yml"]
3636
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
37-
sha = 65f89e06ed7b2ac33ed3b729adc865b7076840d8
38-
etag = 20ef46203325f5b3d06a991f8b38c24bcea49fd74d39062a62003448e2dd8b0a
39-
weak
37+
skip
4038
[file ".github/workflows/changelog.config"]
4139
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
4240
sha = 055a8b7c94b74ae139cce919d60b83976d2a9942
@@ -59,9 +57,7 @@
5957
weak
6058
[file ".github/workflows/publish.yml"]
6159
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
62-
sha = 40ee833a83d843c242914599e2635ca9a05aa837
63-
etag = 105db682c332b2bb0873e60a7d2da45b00fe7d83da0f0e7dbf9a84bc5be77c25
64-
weak
60+
skip
6561
[file ".github/workflows/test/action.yml"]
6662
url = https://github.com/devlooped/oss/blob/main/.github/workflows/test/action.yml
6763
sha = 9a1b07589b9bde93bc12528e9325712a32dec418

0 commit comments

Comments
 (0)