mirror of
https://github.com/actix/examples
synced 2024-11-23 14:31:07 +01:00
ignore protobuf-example in ci
This commit is contained in:
parent
900a699fba
commit
f623284c71
32
.github/workflows/linux.yml
vendored
32
.github/workflows/linux.yml
vendored
@ -15,28 +15,27 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
version: ["stable", "nightly"]
|
||||
version: ['stable', 'nightly']
|
||||
|
||||
env:
|
||||
# included in example of redis, not clear its purpose
|
||||
CI: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: cache cargo artifacts
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
./target/debug
|
||||
key: cargo-linux-${{ matrix.version }}-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
cargo-linux-${{ matrix.version }}-
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.version }}
|
||||
override: true
|
||||
|
||||
- name: Generate Cargo.lock
|
||||
uses: actions-rs/cargo@v1
|
||||
with: { command: generate-lockfile }
|
||||
- name: Cache Dependencies
|
||||
uses: Swatinem/rust-cache@v1.2.0
|
||||
|
||||
- name: create test db for sqlx
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install sqlite3
|
||||
@ -50,7 +49,8 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
with:
|
||||
command: check
|
||||
args: --workspace --bins --examples --tests
|
||||
# TODO: remove exclude protobuf-example when upgraded; currently fails on nightly
|
||||
args: --workspace --bins --examples --tests --exclude protobuf-example
|
||||
|
||||
- name: start redis
|
||||
uses: supercharge/redis-github-action@1.1.0
|
||||
@ -67,9 +67,7 @@ jobs:
|
||||
- name: cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
# included in example of redis, not clear its purpose
|
||||
CI: true
|
||||
with:
|
||||
command: test
|
||||
args: --workspace --all-features --no-fail-fast -- --nocapture
|
||||
# TODO: remove exclude protobuf-example when upgraded; currently fails on nightly
|
||||
args: --workspace --all-features --no-fail-fast --exclude protobuf-example -- --nocapture
|
||||
|
17
Cargo.lock
generated
17
Cargo.lock
generated
@ -384,7 +384,7 @@ version = "0.5.0-beta.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "36b95ce0d76d1aa2f98b681702807475ade0f99bd4552546a6843a966d42ea3d"
|
||||
dependencies = [
|
||||
"bytestring 0.1.5",
|
||||
"bytestring 1.0.0",
|
||||
"firestorm",
|
||||
"http",
|
||||
"log",
|
||||
@ -2502,6 +2502,19 @@ dependencies = [
|
||||
"termcolor",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "env_logger"
|
||||
version = "0.9.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
|
||||
dependencies = [
|
||||
"atty",
|
||||
"humantime 2.0.1",
|
||||
"log",
|
||||
"regex",
|
||||
"termcolor",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "error-chain"
|
||||
version = "0.12.4"
|
||||
@ -4624,7 +4637,7 @@ dependencies = [
|
||||
"actix-protobuf",
|
||||
"actix-web 3.3.1",
|
||||
"bytes 0.5.6",
|
||||
"env_logger 0.7.1",
|
||||
"env_logger 0.9.0",
|
||||
"prost",
|
||||
"prost-derive",
|
||||
]
|
||||
|
2
database_interactions/sqlx_todo/.gitignore
vendored
2
database_interactions/sqlx_todo/.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
/target
|
||||
.env
|
||||
test.db
|
||||
test.db*
|
||||
|
@ -5,11 +5,11 @@ authors = ["kingxsp <jin.hb.zh@outlook.com>, Yuki Okushi <huyuumi.dev@gmail.com>
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
bytes = "0.5.4"
|
||||
env_logger = "0.7.1"
|
||||
prost = "0.6.1"
|
||||
prost-derive = "0.6.1"
|
||||
|
||||
actix = "0.10"
|
||||
actix-protobuf = "0.6"
|
||||
actix-web = "3"
|
||||
|
||||
bytes = "0.5.4"
|
||||
env_logger = "0.9"
|
||||
prost = "0.6"
|
||||
prost-derive = "0.6"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#[macro_use]
|
||||
extern crate prost_derive;
|
||||
|
||||
use actix_protobuf::*;
|
||||
use actix_web::*;
|
||||
use actix_protobuf::{ProtoBuf, ProtoBufResponseBuilder as _};
|
||||
use actix_web::{middleware, web, App, HttpResponse, HttpServer, Result};
|
||||
|
||||
#[derive(Clone, PartialEq, Message)]
|
||||
pub struct MyObj {
|
||||
|
Loading…
Reference in New Issue
Block a user