-
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.
Auto merge of #5071 - flip1995:gha, r=<try>
[WIP][DNM] Switch to GitHub Actions (maybe?) cc #4577 This is just an experiment. I don't think we have a consensus _if_ we should move away from travis/appveyor. GHA would let us run up to 20 concurrent jobs. Since we have 15 integration tests and 4 (linux, linux 32-bit, macos, windows) basic tests, we would be able to run everything concurrently. Also IIUC we only have to build Clippy once for every initegration test and then only check the repos. changelog: none
- Loading branch information
Showing
3 changed files
with
122 additions
and
50 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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- auto | ||
- try | ||
paths-ignore: | ||
# Don't run integration test, when only textfiles are modified | ||
- 'rust-toolchain' | ||
- 'COPYRIGHT' | ||
- 'LICENSE-*' | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: rust-toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: nightly | ||
target: x86_64-unknown-linux-gnu | ||
profile: minimal | ||
- name: Master Toolchain Setup | ||
run: bash setup-toolchain.sh | ||
- name: Build | ||
run: cargo build --features integration | ||
- name: Upload traget/ | ||
uses: actions/[email protected] | ||
with: | ||
name: target | ||
path: target | ||
|
||
test: | ||
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' | ||
|
||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Download target/ | ||
uses: actions/[email protected] | ||
with: | ||
name: target | ||
- name: Test ${{ matrix.integration }} | ||
run: cargo test --test integration --features integration | ||
env: | ||
INTEGRATION: ${{ matrix.integration }} |
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
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