Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ’š (repo) [NO-ISSUE]: Trigger PR tests after toolchain update #420

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/update_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
update-toolchain:
runs-on: ubuntu-latest
runs-on: ["ledgerhq-device-sdk"]
steps:
- uses: actions/checkout@v4

Expand All @@ -31,8 +31,24 @@ jobs:
run: |
echo "status=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT

- name: Create PR
- name: Set new versions
if: steps.changes.outputs.status > 0
run: |
proto use
pnpm i

- name: Health check
if: steps.changes.outputs.status > 0
id: health-check
run: pnpm health-check

- name: Tests
id: unit-tests
if: steps.changes.outputs.status > 0 && success()
run: pnpm test:coverage -- --max-warnings=0

- name: Create PR
if: steps.changes.outputs.status > 0 && success()
run: |
git add .prototools
git commit -m "πŸ”§ (repo) [NO-ISSUE]: Update toolchain"
Expand Down