Skip to content

Commit

Permalink
Merge pull request #24 from embassy-rs/update-test-3
Browse files Browse the repository at this point in the history
Test commit
  • Loading branch information
lulf authored May 2, 2024
2 parents ddccf42 + c7d3959 commit 50dfc35
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,23 @@ jobs:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Checkout PR
- name: Checkout
id: checkout
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr checkout "${{ github.event.inputs.prNr }}"
- name: Build
echo "commit=$(git rev-parse --verify HEAD)" >> "$GITHUB_OUTPUT"
- 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
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=success" -f "description=The build succeeded!" -f "context=tests"

0 comments on commit 50dfc35

Please sign in to comment.