Skip to content

Commit

Permalink
Ensure we retry failing tests for samples too (#275)
Browse files Browse the repository at this point in the history
* Don't deploy unless build succeeds
* Use new dotnet-retest global tool
  • Loading branch information
kzu authored Jul 21, 2024
1 parent 2a5e198 commit 6887043
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:

deploy:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: windows-latest
steps:
- name: 🀘 checkout
Expand Down
22 changes: 4 additions & 18 deletions .github/workflows/samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,15 @@ jobs:
- name: 🀘 checkout
uses: actions/checkout@v4

- name: βš™ tools
run: |
dotnet tool install -g dotnet-ilrepack --prerelease --add-source https://pkg.kzu.app/index.json
dotnet tool install -g dotnet-trx
- name: πŸ™ build
run: dotnet build -m:1 -bl:build.binlog
working-directory: samples/dotnet

- name: βš™ GNU grep
if: matrix.os == 'macOS-latest'
run: |
brew install grep
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
run: dotnet build -m:1 -bl:build.binlog

- name: πŸ§ͺ test
run: dotnet test --no-build -l trx
working-directory: samples/dotnet

- name: πŸ§ͺ show
if: always()
run: trx --output
working-directory: samples/dotnet
run: |
dotnet tool update -g dotnet-retest
dotnet retest -- --no-build
- name: πŸ› logs
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 6887043

Please sign in to comment.