Skip to content

housekeeping(controller): Add object-oriented structure + async to the check command #37

housekeeping(controller): Add object-oriented structure + async to the check command

housekeeping(controller): Add object-oriented structure + async to the check command #37

Workflow file for this run

name: Ubuntu Workflow
on:
push:
branches:
- main
- housekeeping
pull_request:
branches:
- '**'
types: [opened, synchronize, reopened]
jobs:
build_and_test:
name: Ubuntu Build and Run test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
rustc: 1.74
cargo: 1.74
components: rustfmt, clippy
- name: Updated list of packages
run: sudo apt update
- name: Install Java
run: sudo apt install default-jdk
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '1.18'
- name: Cargo
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: C/C++ version
run: |
gcc-12 --version
g++-12 --version
- name: Build
run: cargo build
- name: Clippy
run: cargo clippy
- name: Setup 'python3' as default
run: ./target/debug/quicktest setup config --label="Language::Python.PROGRAM" --value="python3"
- name: Setup 'g++-12' as default
run: ./target/debug/quicktest setup config --label="Language::Cpp.PROGRAM" --value="g++-12"
- name: Setup 'gcc-12' as default
run: ./target/debug/quicktest setup config --label="Language::C.PROGRAM" --value="gcc-12"
- name: Test cmp command
run: cargo test cmp_subcommand -- --test-threads 1
- name: Test stress command
run: cargo test stress_subcommand -- --test-threads 1
- name: Test check command
run: cargo test check_subcommand -- --test-threads 1
- name: Test output command
run: cargo test output_subcommand -- --test-threads 1
- name: Test setup command
run: cargo test setup_subcommand -- --test-threads 1