mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
ignore protobuf-example in ci
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user