added 'setting_up_the_compiler' chapter #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: codebase_checks | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_on_ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run rust formatter to check for consistency in formatting | |
run: | | |
cd ./driver_code | |
cargo fmt --all -- --config format_code_in_doc_comments=true --check | |
- name: Run clippy | |
run: | | |
cd ./driver_code | |
cargo clippy --all-targets --all-features -- -D warnings | |
- name: Build src on Ubuntu | |
run: | | |
cd ./driver_code | |
cargo build --verbose | |
- name: Run tests on Ubutu | |
run: | | |
cd ./driver_code | |
cargo test --verbose |