Skip to content

Commit

Permalink
Build Clippy before running integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Jan 31, 2020
1 parent ff9e96d commit 01fbcb9
Showing 1 changed file with 47 additions and 3 deletions.
50 changes: 47 additions & 3 deletions .github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,45 @@ jobs:
/usr/bin/find ~/.cargo/bin ! -type d -exec strip {} \;
cargo cache --autoclean
shell: bash
integration:
integration_build:
needs: changelog
runs-on: ubuntu-latest

steps:
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
with:
github_token: "${{ secrets.github_token }}"
- name: rust-toolchain
uses: actions-rs/[email protected]
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/[email protected]
- name: Master Toolchain Setup
run: bash setup-toolchain.sh

- name: Build Clippy
run: cargo build --features integration
- name: Upload target dir
uses: actions/upload-artifact@v1
with:
name: target
path: target

- name: Run cargo-cache --autoclean
run: |
cargo install cargo-cache --debug
find ~/.cargo/bin ! -type d -exec strip {} \;
cargo cache --autoclean
integration:
needs: integration_build
strategy:
fail-fast: false
max-parallel: 6
Expand Down Expand Up @@ -194,8 +231,15 @@ jobs:
- name: Master Toolchain Setup
run: bash setup-toolchain.sh

- name: Build
run: cargo build --features integration
- name: Download target dir
uses: actions/download-artifact@v1
with:
name: target
path: target
- name: Debug
run: |
ls target
exit 1
- name: Test ${{ matrix.integration }}
run: cargo test --test integration --features integration
env:
Expand Down

0 comments on commit 01fbcb9

Please sign in to comment.