You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
769 B

  1. name: Build and Test Testudo
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. branches: [master]
  7. jobs:
  8. build_nightly:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Install
  13. run: rustup default nightly
  14. - name: Install rustfmt Components
  15. run: rustup component add rustfmt
  16. - name: Install clippy
  17. run: rustup component add clippy
  18. - name: Build
  19. run: cargo build --verbose
  20. - name: Run tests
  21. run: cargo test --verbose
  22. - name: Build examples
  23. run: cargo build --examples --verbose
  24. - name: Check Rustfmt Code Style
  25. run: cargo fmt --all -- --check
  26. - name: Check clippy warnings
  27. run: cargo clippy --all-targets --all-features