diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ce2ffe1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,52 @@ +on: [pull_request] + +name: Rust workflow for Arrow client + +jobs: + ci: + name: CI + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: Fmt + id: fmt + uses: angelcam/actions-rust@master + with: + command: fmt + args: --all -- --check + + - name: Build + id: build + uses: angelcam/actions-rust@master + with: + command: build + args: --all-features --release + + - name: Test + id: test + uses: angelcam/actions-rust@master + with: + command: test + args: --all-features + + - name: Clippy + id: clippy + uses: angelcam/actions-rust@master + with: + command: clippy + args: -- -D warnings + + - name: Audit + id: audit + uses: angelcam/actions-rust@master + with: + command: audit + + - name: Udeps + id: udeps + uses: angelcam/actions-rust@master + with: + command: udeps + toolchain: +nightly diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index fa8cdc6..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,81 +0,0 @@ -on: [pull_request] - -name: tests - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - run: sudo apt install libpcap-dev - - uses: actions-rs/cargo@v1.0.1 - with: - command: build - args: --all-features --release - - test: - name: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - run: sudo apt install libpcap-dev - - uses: actions-rs/cargo@v1.0.1 - with: - command: test - args: --all-features - - audit: - name: Audit - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - uses: actions-rs/cargo@v1.0.1 - with: - command: install - args: cargo-audit - - uses: actions-rs/cargo@v1.0.1 - with: - command: audit - - fmt: - name: Format - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1.0.1 - with: - command: fmt - args: --all -- --check - - clippy: - name: Clippy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - run: rustup component add clippy - - uses: actions-rs/cargo@v1.0.1 - with: - command: clippy - args: -- -D warnings