Skip to content

Commit 150669b

Browse files
committed
Add CI job for running tests in release mode to show failing testcases
1 parent ab7f6d8 commit 150669b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/rust.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,32 @@ jobs:
103103
DO_FEATURE_MATRIX: true
104104
run: ./contrib/test.sh
105105

106+
ReleaseTests:
107+
name: Release tests with global context enabled
108+
strategy:
109+
matrix:
110+
rust:
111+
- 1.29.0
112+
- beta
113+
- stable
114+
target: [ x86_64-unknown-linux-gnu, x86_64-apple-darwin ]
115+
include:
116+
- target: x86_64-unknown-linux-gnu
117+
os: ubuntu-latest
118+
- target: x86_64-apple-darwin
119+
os: macos-latest
120+
runs-on: ${{ matrix.os }}
121+
steps:
122+
- name: Checkout Crate
123+
uses: actions/checkout@v2
124+
- name: Checkout Toolchain
125+
uses: actions-rs/toolchain@v1
126+
with:
127+
profile: minimal
128+
toolchain: ${{ matrix.rust }}
129+
override: true
130+
- name: Pin cc if rust 1.29
131+
if: matrix.rust == '1.29.0'
132+
run: cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose
133+
- name: Running cargo in release mode
134+
run: cargo test --features="global-context" --release

0 commit comments

Comments
 (0)