Skip to content

Commit

Permalink
πŸ’š (repo): Trigger PR tests after toolchain update
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Oct 16, 2024
1 parent 2ed024e commit 660c257
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/update_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ on:
env:
BRANCH_NAME: chore/update-toolchain

permissions:
actions: write

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

Expand All @@ -31,8 +34,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

0 comments on commit 660c257

Please sign in to comment.