Skip to content

Commit 2f8ef89

Browse files
committed
Add integration test GitHub action
1 parent 07f1736 commit 2f8ef89

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/integration.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- auto
7+
- try
8+
# Don't run integration tests, when only textfiles were modified
9+
paths-ignore:
10+
- 'COPYRIGHT'
11+
- 'LICENSE-*'
12+
- '**.md'
13+
- '**.txt'
14+
15+
env:
16+
RUST_BACKTRACE: 1
17+
18+
jobs:
19+
integration:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
integration:
24+
- 'rust-lang/rls'
25+
- 'rust-lang/cargo'
26+
- 'rust-lang/chalk'
27+
- 'Geal/nom'
28+
- 'rust-lang/rustfmt'
29+
- 'hyperium/hyper'
30+
- 'rust-itertools/itertools'
31+
- 'serde-rs/serde'
32+
- 'rust-lang/stdarch'
33+
- 'rust-random/rand'
34+
- 'rust-lang/futures-rs'
35+
- 'Marwes/combine'
36+
- 'rust-lang-nursery/failure'
37+
- 'rust-lang/log'
38+
- 'chronotope/chrono'
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- name: rust-toolchain
43+
uses: actions-rs/[email protected]
44+
with:
45+
toolchain: nightly
46+
target: x86_64-unknown-linux-gnu
47+
profile: minimal
48+
- name: Cache cargo dir
49+
uses: actions/cache@v1
50+
with:
51+
path: ~/.cargo
52+
key: ${{ runner.os }}-x86_64-unknown-linux-gnu
53+
- name: Checkout
54+
uses: actions/[email protected]
55+
- name: Master Toolchain Setup
56+
run: bash setup-toolchain.sh
57+
58+
- name: Build
59+
run: cargo build --features integration
60+
- name: Test ${{ matrix.integration }}
61+
run: cargo test --test integration --features integration
62+
env:
63+
INTEGRATION: ${{ matrix.integration }}
64+
65+
- name: Run cargo-cache --autoclean
66+
run: |
67+
cargo install cargo-cache --debug
68+
find ~/.cargo/bin ! -type d -exec strip {} \;
69+
cargo cache --autoclean

0 commit comments

Comments
 (0)