build: cargo update #413
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI (Linux) | |
on: [push, pull_request] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start ArangoDB by docker-compose | |
run: | | |
docker-compose up -d | |
sleep 30 | |
docker-compose logs | |
- name: Set up ArangoDB for test | |
run: bash tests/init_db.sh | |
- name: rustfmt | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: check build (blocking) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
with: | |
command: check | |
args: --no-default-features --features "rocksdb cluster enterprise blocking" --lib | |
- name: test (blocking) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
timeout-minutes: 40 | |
with: | |
command: test | |
args: --no-fail-fast --no-default-features --features "rocksdb cluster enterprise blocking" --lib | |
- name: check build (reqwest_blocking) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
with: | |
command: check | |
args: --no-default-features --features "rocksdb cluster enterprise reqwest_blocking" --all | |
- name: test (reqwest_blocking) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
timeout-minutes: 40 | |
with: | |
command: test | |
args: --no-fail-fast --no-default-features --features "rocksdb cluster enterprise reqwest_blocking" --all | |
- name: check build (default features) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
with: | |
command: check | |
args: --all --bins --examples --tests | |
- name: tests (default features) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
timeout-minutes: 40 | |
with: | |
command: test | |
args: --all --no-fail-fast -- --nocapture | |
- name: check build (async) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
with: | |
command: check | |
args: --no-default-features --features "rocksdb cluster enterprise" --lib | |
- name: test (async) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
timeout-minutes: 40 | |
with: | |
command: test | |
args: --no-fail-fast --no-default-features --features "rocksdb cluster enterprise" --lib | |
- name: check build (reqwest_async) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
with: | |
command: check | |
args: --no-default-features --features "rocksdb cluster enterprise reqwest_async" --all | |
- name: test (reqwest_async) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
timeout-minutes: 40 | |
with: | |
command: test | |
args: --no-fail-fast --no-default-features --features "rocksdb cluster enterprise reqwest_async" --all | |
- name: check build (surf_async) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
with: | |
command: check | |
args: --no-default-features --features "rocksdb cluster enterprise surf_async" --all | |
- name: test (surf_async) | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
timeout-minutes: 40 | |
with: | |
command: test | |
args: --no-fail-fast --no-default-features --features "rocksdb cluster enterprise surf_async" --all | |
mmfiles: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start ArangoDB by docker | |
run: | | |
docker run -e ARANGO_STORAGE_ENGINE=mmfiles -e ARANGO_ROOT_PASSWORD=KWNngteTps7XjrNv -p 8529:8529 -d --name arangodb arangodb/arangodb | |
sleep 30 | |
docker logs arangodb | |
- name: Set up ArangoDB for test | |
run: bash tests/init_db.sh | |
- name: check build | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
with: | |
command: check | |
args: --all --bins --examples --tests --no-default-features --features "mmfiles cluster enterprise reqwest_blocking" --lib | |
- name: tests | |
uses: actions-rs/cargo@v1 | |
env: | |
RUST_LOG: arangors=trace | |
timeout-minutes: 40 | |
with: | |
command: test | |
args: --all --no-fail-fast --no-default-features --features "mmfiles cluster enterprise reqwest_blocking" | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: doc | |
uses: actions-rs/cargo@v1 | |
env: | |
RUSTDOCFLAGS: -Dwarnings | |
with: | |
command: doc | |
args: --all --no-deps | |
publish: | |
name: Publish Package | |
needs: build_and_test | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: login | |
env: | |
SUPER_SECRET: ${{ secrets.CARGO_TOKEN }} | |
run: cargo login "$SUPER_SECRET" | |
shell: bash | |
- name: publish | |
uses: actions-rs/cargo@v1 | |
with: | |
command: publish |