Move integration tests in clippy_bors.yml

Some call it the integration integration
This commit is contained in:
flip1995 2020-01-22 20:00:41 +01:00
parent 66b5e2212d
commit 92811675ce
No known key found for this signature in database
GPG key ID: 693086869D506637
2 changed files with 54 additions and 70 deletions

View file

@ -3,7 +3,7 @@ name: Clippy Test (bors)
on:
push:
branches: [auto, try]
# Don't run Clippy tests, when only textfiles were modified
# Don't run tests, when only textfiles were modified
paths-ignore:
- 'COPYRIGHT'
- 'LICENSE-*'
@ -167,3 +167,56 @@ jobs:
/usr/bin/find ~/.cargo/bin ! -type d -exec strip {} \;
cargo cache --autoclean
shell: bash
integration:
needs: changelog
strategy:
fail-fast: false
matrix:
integration:
- 'rust-lang/cargo'
- 'rust-lang/rls'
- 'rust-lang/chalk'
- 'rust-lang/rustfmt'
- 'Marwes/combine'
- 'Geal/nom'
- 'rust-lang/stdarch'
- 'serde-rs/serde'
- 'chronotope/chrono'
- 'hyperium/hyper'
- 'rust-random/rand'
- 'rust-lang/futures-rs'
- 'rust-itertools/itertools'
- 'rust-lang-nursery/failure'
- 'rust-lang/log'
runs-on: ubuntu-latest
steps:
- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.3
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal
- name: Cache cargo dir
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-x86_64-unknown-linux-gnu
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Master Toolchain Setup
run: bash setup-toolchain.sh
- name: Build
run: cargo build --features integration
- name: Test ${{ matrix.integration }}
run: cargo test --test integration --features integration
env:
INTEGRATION: ${{ matrix.integration }}
- name: Run cargo-cache --autoclean
run: |
cargo install cargo-cache --debug
find ~/.cargo/bin ! -type d -exec strip {} \;
cargo cache --autoclean

View file

@ -1,69 +0,0 @@
name: Integration
on:
push:
branches:
- auto
- try
# Don't run integration tests, when only textfiles were modified
paths-ignore:
- 'COPYRIGHT'
- 'LICENSE-*'
- '**.md'
- '**.txt'
env:
RUST_BACKTRACE: 1
jobs:
integration:
strategy:
fail-fast: false
matrix:
integration:
- 'rust-lang/rls'
- 'rust-lang/cargo'
- 'rust-lang/chalk'
- 'Geal/nom'
- 'rust-lang/rustfmt'
- 'hyperium/hyper'
- 'rust-itertools/itertools'
- 'serde-rs/serde'
- 'rust-lang/stdarch'
- 'rust-random/rand'
- 'rust-lang/futures-rs'
- 'Marwes/combine'
- 'rust-lang-nursery/failure'
- 'rust-lang/log'
- 'chronotope/chrono'
runs-on: ubuntu-latest
steps:
- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.3
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal
- name: Cache cargo dir
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-x86_64-unknown-linux-gnu
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Master Toolchain Setup
run: bash setup-toolchain.sh
- name: Build
run: cargo build --features integration
- name: Test ${{ matrix.integration }}
run: cargo test --test integration --features integration
env:
INTEGRATION: ${{ matrix.integration }}
- name: Run cargo-cache --autoclean
run: |
cargo install cargo-cache --debug
find ~/.cargo/bin ! -type d -exec strip {} \;
cargo cache --autoclean