ci-cosmwasm-contract.yml 973 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Test CosmWasm Contract
  2. on:
  3. pull_request:
  4. paths:
  5. - .github/workflows/ci-cosmwasm-contract.yml
  6. - target_chains/cosmwasm/**
  7. - wormhole_attester/sdk/rust/**
  8. push:
  9. branches:
  10. - main
  11. env:
  12. CARGO_TERM_COLOR: always
  13. jobs:
  14. build:
  15. runs-on: ubuntu-latest
  16. defaults:
  17. run:
  18. working-directory: target_chains/cosmwasm/contracts/pyth
  19. steps:
  20. - uses: actions/checkout@v2
  21. - uses: actions-rs/toolchain@v1
  22. with:
  23. toolchain: 1.82.0
  24. components: rustfmt, clippy
  25. override: true
  26. - name: Format check
  27. run: cargo fmt --all -- --check
  28. if: success() || failure()
  29. - name: Clippy check
  30. run: cargo clippy --tests -- --deny warnings
  31. if: success() || failure()
  32. - name: Build
  33. run: cargo build --verbose
  34. if: success() || failure()
  35. - name: Run tests
  36. run: cargo test --verbose
  37. if: success() || failure()