Skip to content

Commit

Permalink
Run retest with sample on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Jul 21, 2024
1 parent 7eb00bc commit 4502f68
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 34 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions .netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4502f68

Please sign in to comment.