File tree Expand file tree Collapse file tree 3 files changed +13
-34
lines changed Expand file tree Collapse file tree 3 files changed +13
-34
lines changed Original file line number Diff line number Diff line change @@ -34,47 +34,26 @@ defaults:
34
34
shell : bash
35
35
36
36
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
-
53
37
build :
54
38
needs : os-matrix
55
39
name : build-${{ matrix.os }}
56
40
runs-on : ${{ matrix.os }}
57
41
strategy :
58
42
matrix :
59
- os : ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
43
+ os : [ 'windows-latest', 'ubuntu-latest', 'macOS-latest' ]
60
44
steps :
61
45
- name : 🤘 checkout
62
46
uses : actions/checkout@v4
63
- with :
64
- submodules : recursive
65
- fetch-depth : 0
66
47
67
48
- name : 🙏 build
68
49
run : dotnet build -m:1 -bl:build.binlog
69
50
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 .
75
54
76
55
- name : 🧪 test
77
- uses : ./.github/workflows/test
56
+ uses : dotnet retest -- ./src/Sample/
78
57
79
58
- name : 🐛 logs
80
59
uses : actions/upload-artifact@v3
87
66
- name : 🚀 sleet
88
67
env :
89
68
SLEET_CONNECTION : ${{ secrets.SLEET_CONNECTION }}
90
- if : env.SLEET_CONNECTION != ''
69
+ if : env.SLEET_CONNECTION != '' && matrix.os == 'ubuntu-latest'
91
70
run : |
92
71
dotnet tool install -g --version 4.0.18 sleet
93
72
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"
Original file line number Diff line number Diff line change 29
29
- name : 🙏 build
30
30
run : dotnet build -m:1 -bl:build.binlog
31
31
32
+ - name : ⚙ install
33
+ working-directory : bin
34
+ run : dotnet tool update -g dotnet-retest --prerelease --add-source .
35
+
32
36
- name : 🧪 test
33
- uses : ./.github/workflows/test
37
+ uses : dotnet retest -- ./src/Sample/
34
38
35
39
- name : 🐛 logs
36
40
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 34
34
weak
35
35
[file ".github/workflows/build.yml"]
36
36
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
37
- sha = 65f89e06ed7b2ac33ed3b729adc865b7076840d8
38
- etag = 20ef46203325f5b3d06a991f8b38c24bcea49fd74d39062a62003448e2dd8b0a
39
- weak
37
+ skip
40
38
[file ".github/workflows/changelog.config"]
41
39
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
42
40
sha = 055a8b7c94b74ae139cce919d60b83976d2a9942
59
57
weak
60
58
[file ".github/workflows/publish.yml"]
61
59
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
62
- sha = 40ee833a83d843c242914599e2635ca9a05aa837
63
- etag = 105db682c332b2bb0873e60a7d2da45b00fe7d83da0f0e7dbf9a84bc5be77c25
64
- weak
60
+ skip
65
61
[file ".github/workflows/test/action.yml"]
66
62
url = https://github.com/devlooped/oss/blob/main/.github/workflows/test/action.yml
67
63
sha = 9a1b07589b9bde93bc12528e9325712a32dec418
You can’t perform that action at this time.
0 commit comments