diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f63fe80 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,32 @@ +name: Publish + +on: + push: + tags: [ "**" ] + +env: + RUST_LOG: debug + CARGO_TERM_COLOR: always + RUST_BACKTRACE: "1" + RUSTFLAGS: "-D warnings" + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + +jobs: + publish: + name: Publish + + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Rust Stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Cargo publish phper-sys + uses: actions-rs/cargo@v1 + with: + command: publish diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a70d486..1fdd701 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,7 +27,7 @@ jobs: - "" - --no-default-features --features auth,conf # - --no-default-features --features host,open -# - --features full + - --features full runs-on: ${{ matrix.os }} steps: - name: Checkout diff --git a/docker-compose.yml b/docker-compose.yml index f84074b..f07aa8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.6' services: apollo: - image: nobodyiam/apollo-quick-start + image: nobodyiam/apollo-quick-start:1.9.2 container_name: apollo depends_on: - apollo-db diff --git a/tests/open.rs b/tests/open.rs index b770107..b3628e2 100644 --- a/tests/open.rs +++ b/tests/open.rs @@ -160,7 +160,7 @@ async fn test_curd_item_request() { item: OpenCreatedItem { key: "connect_timeout".to_string(), value: "100".to_string(), - comment: None, + comment: Some("connect timeout".to_owned()), data_change_created_by: "apollo".to_string(), }, ..Default::default()