ci-fortuna.yml 761 B

12345678910111213141516171819202122232425262728
  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: actions-rust-lang/setup-rust-toolchain@v1
  19. - name: Format check
  20. run: cargo fmt --all -- --check
  21. if: success() || failure()
  22. - name: Clippy check
  23. run: cargo clippy -p fortuna --all-targets -- --deny warnings
  24. if: success() || failure()
  25. - name: Run tests
  26. run: cargo test -p fortuna -- --test-threads=1
  27. if: success() || failure()