Files
tarpc/.github/workflows/main.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 35: mapping key "test" already defined at line 21 line 50: mapping key "test" already defined at line 21 line 65: mapping key "test" already defined at line 21 line 80: mapping key "test" already defined at line 21 line 95: mapping key "test" already defined at line 21 line 50: mapping key "test" already defined at line 35 line 65: mapping key "test" already defined at line 35 line 80: mapping key "test" already defined at line 35 line 95: mapping key "test" already defined at line 35 line 65: mapping key "test" already defined at line 50 line 80: mapping key "test" already defined at line 50 line 95: mapping key "test" already defined at line 50 line 80: mapping key "test" already defined at line 65 line 95: mapping key "test" already defined at line 65 line 95: mapping key "test" already defined at line 80
2020-11-12 11:59:39 -08:00

141 lines
3.2 KiB
YAML

on: [push, pull_request]
name: Continuous integration
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
test:
name: Test Suite, Serde enabled
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --features serde1
test:
name: Test Suite, Tokio enabled
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --features tokio1
test:
name: Test Suite, Serde Transport enabled
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --features serde-transport
test:
name: Test Suite, TCP enabled
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --features tcp
test:
name: Test Suite, All Features Enabled
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings