ci-cosmwasm-contract.yml 1000 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. profile: minimal
  24. toolchain: 1.82.0
  25. components: rustfmt, clippy
  26. override: true
  27. - name: Format check
  28. run: cargo fmt --all -- --check
  29. if: success() || failure()
  30. - name: Clippy check
  31. run: cargo clippy --tests -- --deny warnings
  32. if: success() || failure()
  33. - name: Build
  34. run: cargo build --verbose
  35. if: success() || failure()
  36. - name: Run tests
  37. run: cargo test --verbose
  38. if: success() || failure()