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
4 changes: 2 additions & 2 deletions .github/workflows/deployment-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
paths:
- '.github/workflows/deployment-build-test.yaml'
- 'concordium-base'
- 'deployment'
- 'plt-deployment-unit'

pull_request:
paths:
- '.github/workflows/deployment-build-test.yaml'
- 'concordium-base'
- 'deployment'
- 'plt-deployment-unit'
env:
CARGO_TERM_COLOR: always # implicitly adds '--color=always' to all cargo commands

Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/plt-scheduler-build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: PLT scheduler checks

on:
push:
branches:
- main
paths:
- '.github/workflows/deployment-build-test.yaml'
- 'concordium-base'
- 'plt-deployment-unit'
- 'plt-scheduler'

pull_request:
paths:
- '.github/workflows/plt-scheduler-build-test.yaml'
- 'concordium-base'
- 'plt-deployment-unit'
- 'plt-scheduler'
env:
CARGO_TERM_COLOR: always # implicitly adds '--color=always' to all cargo commands

jobs:
rustfmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Run rustfmt
working-directory: plt-scheduler
run: |
rustup component add rustfmt
cargo fmt -- --check

clippy_test:
name: Run Clippy and tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Clippy
working-directory: plt-scheduler
run: |
rustup component add clippy
cargo clippy --all-targets --all-features --locked -- -D warnings
- name: Test
working-directory: plt-scheduler
run: cargo test --all-targets --all-features
Loading
Loading