1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
name: Rust
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./virtme_ng_init
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1
with:
# To be adapted if the structure changes, e.g. new subdirs.
extra_args: --files virtme_ng_init/*/*.rs
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
|