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

added ci #249

Merged
merged 3 commits into from
Jun 13, 2024
Merged
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
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
push:
branches:
- main
pull_request: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- --deny warnings

# run tests in each crate with cargo-make
feature_check_and_test:
runs-on: ubuntu-latest
steps:
- uses: davidB/rust-cargo-make@v1
- uses: actions/checkout@v2
- name: Install wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
- name: feature_check
run: (cd fe2o3-amqp && cargo make feature_check)
- name: test serde_amqp
run: (cd serde_amqp && cargo make test)
- name: test fe2o3-amqp-types
run: (cd fe2o3-amqp-types && cargo make test)
- name: test fe2o3-amqp
run: (cd fe2o3-amqp && cargo make test)
- name: test fe2o3-amqp-cbs
run: (cd fe2o3-amqp-cbs && cargo make test)
- name: test fe2o3-amqp-ext
run: (cd fe2o3-amqp-ext && cargo make test)
- name: test fe2o3-amqp-management
run: (cd fe2o3-amqp-management && cargo make test)
- name: test fe2o3-amqp-ws
run: (cd fe2o3-amqp-ws && cargo make test)

Loading