Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow tweak #6

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 4 additions & 21 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ on:
branches: ["**"]
tags: ["**"]

concurrency:
group: ${{ (github.ref == 'refs/heads/main') && 'main' || format('{0}-{1}', github.workflow, github.ref) }} # concurrency does not include main branch
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
- uses: dtolnay/rust-toolchain@stable
with:
bins: cargo-make
components: clippy
Expand All @@ -32,7 +28,7 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Build binary
Expand All @@ -48,21 +44,8 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
- uses: dtolnay/rust-toolchain@stable
with:
bins: cargo-make, cargo-nextest
- name: Run tests
run: |
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_single_thread
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_multi_thread
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_registry_2
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_registry_1
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_attribute_macros
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_calibration_segment_basics
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_calibration_segment_persistence
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_cal_page_switch
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_cal_page_freeze
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_cal_page_trait
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_daq_register
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_daq_capture
cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture --test test_a2l_local_variables_capture
run: cargo test --features=a2l_reader --features=serde -- --test-threads=1 --nocapture
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Main purpose was to experiment with Rust and to demonstrate some more advanced f
Requires CANape 22 SP2.


## Introduction
## Introduction

XCP is a measurement and calibration protocol commonly used in the automotive industry. It is an ASAM standard.

Expand Down