Skip to content
Merged
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
40 changes: 39 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,43 @@ jobs:
with:
fail-on-severity: high

rust:
name: Rust (mat-rs)
runs-on: ubuntu-22.04
timeout-minutes: 15
if: |
github.event_name != 'workflow_dispatch' ||
inputs.test-suite == 'all' ||
inputs.test-suite == 'test'

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Cache cargo build
uses: Swatinem/rust-cache@v2
with:
workspaces: mat-rs

- name: Check formatting
run: cargo fmt --manifest-path mat-rs/Cargo.toml --all -- --check

- name: Run clippy
run: cargo clippy --manifest-path mat-rs/Cargo.toml --all-targets -- -D warnings

- name: Run tests
run: cargo test --manifest-path mat-rs/Cargo.toml

summary:
name: CI Summary
runs-on: ubuntu-22.04
timeout-minutes: 5
needs: [lint, test, security, dependency-review]
needs: [lint, test, security, dependency-review, rust]
if: always()

steps:
Expand All @@ -178,6 +210,7 @@ jobs:
echo "Test: ${{ needs.test.result }}"
echo "Security: ${{ needs.security.result }}"
echo "Dependency Review: ${{ needs.dependency-review.result }}"
echo "Rust (mat-rs): ${{ needs.rust.result }}"
echo ""

FAILED=false
Expand All @@ -202,6 +235,11 @@ jobs:
FAILED=true
fi

if [ "${{ needs.rust.result }}" = "failure" ]; then
echo "ERROR: Rust checks failed"
FAILED=true
fi

if [ "$FAILED" = "true" ]; then
echo ""
echo "One or more checks failed"
Expand Down
2 changes: 1 addition & 1 deletion .vig-os
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# vig-os devcontainer configuration
DEVCONTAINER_VERSION=0.3.0
DEVCONTAINER_VERSION=0.3.3
Loading