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.

28 lines
686 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. name: Build and Test Nova
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Install
  13. run: rustup default stable
  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 +stable test --release --verbose
  22. - name: Check Rustfmt Code Style
  23. run: cargo fmt --all -- --check
  24. - name: Check clippy warnings
  25. run: cargo clippy --all-targets --all-features -- -D warnings