Skip to content

Commit

Permalink
Update statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed May 2, 2024
1 parent 50dfc35 commit 1159ac0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,25 @@ jobs:
run: |
gh pr checkout "${{ github.event.inputs.prNr }}"
echo "commit=$(git rev-parse --verify HEAD)" >> "$GITHUB_OUTPUT"
- name: Set pending
env:
COMMIT: ${{ steps.checkout.outputs.commit }}
run: |
gh api --method POST -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" /repos/embassy-rs/trouble/statuses/${COMMIT} \
-f "state=pending" -f "description=Running tests" -f "context=tests"
- name: Test
env:
TEST_ADAPTER_ONE: /dev/ttyACM0
TEST_ADAPTER_TWO: /dev/ttyACM1
RUST_LOG: info
run: |
env:
COMMIT: ${{ steps.checkout.outputs.commit }}
cd host
cargo test --test '*' -- --nocapture
- name: Update status
env:
COMMIT: ${{ steps.checkout.outputs.commit }}
run: |
gh api --method POST -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" /repos/embassy-rs/trouble/statuses/$COMMIT \
-H "X-GitHub-Api-Version: 2022-11-28" /repos/embassy-rs/trouble/statuses/${COMMIT} \
-f "state=success" -f "description=The build succeeded!" -f "context=tests"

0 comments on commit 1159ac0

Please sign in to comment.