|
- name: CI
-
- on:
- push:
- pull_request:
- workflow_dispatch:
-
- jobs:
- test:
- name: "Test"
- strategy:
- matrix:
- platform: [ubuntu-latest, macos-latest, windows-latest]
- fail-fast: false
- runs-on: ${{ matrix.platform }}
- timeout-minutes: 60
- steps:
- - uses: actions/checkout@v3
- - uses: r7kamura/rust-problem-matchers@v1.1.0
- - run: cargo --version --verbose
- - uses: Swatinem/rust-cache@v2
- with:
- cache-on-failure: "true"
-
- - name: "Check"
- run: cargo check --all
- - name: "Build"
- run: cargo build --all
- - name: "Test"
- run: cargo test --all
-
- - name: "Build examples"
- timeout-minutes: 30
- run: cargo build --examples
-
- - name: "Rust Dataflow example"
- timeout-minutes: 30
- run: cargo run --example rust-dataflow
-
- - name: "Benchmark example"
- timeout-minutes: 30
- run: cargo run --example benchmark --release
-
- - name: "C Dataflow example"
- timeout-minutes: 15
- run: cargo run --example c-dataflow
- - name: "C++ Dataflow example"
- timeout-minutes: 15
- run: cargo run --example cxx-dataflow
-
- - name: "Remote Rust Dataflow example"
- if: runner.os == 'Linux' && false # skip this example for now until we uploaded new test nodes
- timeout-minutes: 30
- run: cargo run --example rust-dataflow-url
-
- - name: "Build cli and binaries"
- timeout-minutes: 30
- run: |
- cargo install --path binaries/coordinator
- cargo install --path binaries/daemon
- cargo install --path binaries/runtime
- cargo install --path binaries/cli
-
- - name: "Test CLI"
- if: runner.os == 'Linux' || runner.os == 'macOS'
- timeout-minutes: 30
- run: |
- dora-cli up
- dora-cli list
- dora-cli new test_project --internal-create-with-path-dependencies
- cd test_project
- cargo build --all
- UUID=$(dora-cli start dataflow.yml)
- sleep 10
- dora-cli stop $UUID
- cd ..
- dora-cli destroy
-
- clippy:
- name: "Clippy"
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
-
- - uses: r7kamura/rust-problem-matchers@v1.1.0
- - run: cargo --version --verbose
- - uses: Swatinem/rust-cache@v2
-
- - name: "Clippy"
- run: cargo clippy --all
- - name: "Clippy (tracing feature)"
- run: cargo clippy --all --features tracing
- if: false # only the dora-runtime has this feature, but it is currently commented out
- - name: "Clippy (metrics feature)"
- run: cargo clippy --all --features metrics
- if: false # only the dora-runtime has this feature, but it is currently commented out
-
- rustfmt:
- name: "Formatting"
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: r7kamura/rust-problem-matchers@v1.1.0
- - name: "rustfmt"
- run: cargo fmt --all -- --check
-
- check-license:
- name: "License Checks"
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
-
- - uses: r7kamura/rust-problem-matchers@v1.1.0
- - run: cargo --version --verbose
- - uses: Swatinem/rust-cache@v2
-
- - run: cargo install cargo-lichking
- - name: "Check dependency licenses"
- run: cargo lichking check
|