Skip to content

Commit

Permalink
Modify CI. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjoy authored Aug 11, 2022
1 parent ddcdece commit df708d9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/open.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit df708d9

Please sign in to comment.