ci-fortuna.yml 898 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Check Fortuna
  2. on:
  3. pull_request:
  4. paths:
  5. - .github/workflows/ci-fortuna.yml
  6. - apps/fortuna/**
  7. - target_chains/ethereum/entropy_sdk/solidity/abis/**
  8. push:
  9. branches: [main]
  10. jobs:
  11. test:
  12. runs-on: ubuntu-latest
  13. defaults:
  14. run:
  15. working-directory: apps/fortuna
  16. steps:
  17. - uses: actions/checkout@v2
  18. - uses: Swatinem/rust-cache@v2
  19. with:
  20. workspaces: "apps/fortuna -> target"
  21. - uses: actions-rs/toolchain@v1
  22. with:
  23. toolchain: 1.82.0
  24. override: true
  25. components: rustfmt, clippy
  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: Run tests
  33. run: cargo test
  34. if: success() || failure()