-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Clippy before running integration tests
- Loading branch information
Showing
1 changed file
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|