forked from tremor-rs/tremor-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.6 KB
/
integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Integration tests
on:
pull_request:
push:
branches:
- main
jobs:
cli-test-harness:
strategy:
matrix:
kind: [integration, api, unit, command]
include:
# - os: windows-2019
- os: macos-10.15
exclude_tests: "--excludes docker"
# GH OS X runners only support very very very very old CPUs so we can't use anything
# fancy here and got to fall back to the minimal SSE4.2 requirement for simd_json
target_feature: "+sse4.2"
- os: macos-11.0
target_feature: "+sse4.2"
- os: ubuntu-20.04
exclude_tests: ""
target_feature: "+avx,+avx2,+sse4.2"
env:
TREMOR_PATH: "${{ github.workspace }}/tremor-script/lib"
RUSTFLAGS: -D warnings -C target-feature=${{ matrix.target_feature }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Install deps
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get -qy update && sudo apt-get install -y libssl-dev libssl1.1
- uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
- uses: Swatinem/rust-cache@v1
- name: Build test runner
run: cargo build -p tremor-cli
- name: run ${{ matrix.kind }} tests
run: cargo run -p tremor-cli -- test ${{ matrix.kind }} tremor-cli/tests ${{ matrix.exclude_tests }}
- name: Upload error logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-errors
path: tremor-cli/tests/**/*.log