Skip to content

Commit

Permalink
Run examples in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningHolmDE committed Aug 9, 2024
1 parent 3806796 commit 2db1948
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,13 @@ jobs:

- name: Run Clippy
run: cargo clippy --all-targets

- name: Run examples
env:
HCLOUD_API_TOKEN: ${{ secrets.HCLOUD_API_TOKEN }}
run: |
set -e
cargo run --example find_cheapest_server_type "$HCLOUD_API_TOKEN"
cargo run --example list_images "$HCLOUD_API_TOKEN"
cargo run --example list_isos "$HCLOUD_API_TOKEN"
cargo run --example list_servers "$HCLOUD_API_TOKEN"

0 comments on commit 2db1948

Please sign in to comment.