-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (73 loc) · 2.5 KB
/
examples.yml
File metadata and controls
81 lines (73 loc) · 2.5 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: examples
on:
push:
branches: main
pull_request:
branches: [ main ]
jobs:
local_queue_example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build local queue example
run: docker build -f examples/local_queue_example/Dockerfile .
kubernetes_example_local_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: './turbolift'
- name: install rustup and rust nightly
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2020-09-28
- name: run tests
run: |
cd turbolift/examples/kubernetes_example
RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test -- --nocapture
kubernetes_example_local_run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: './turbolift'
- name: install rustup and rust nightly
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2020-09-28
- name: run tests
run: |
cd turbolift/examples/kubernetes_example
RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo run
kubernetes_example_distributed_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: './turbolift'
- name: install rustup and rust nightly
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2020-09-28
- uses: engineerd/setup-kind@v0.5.0
with:
version: "v0.11.1"
- name: run tests
run: |
cd turbolift/examples/kubernetes_example
sh setup_cluster.sh
RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test --features distributed -- --nocapture
kubernetes_example_distributed_run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: './turbolift'
- name: install rustup and rust nightly
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2020-09-28
- uses: engineerd/setup-kind@v0.5.0
with:
version: "v0.11.0"
- name: run tests
run: |
cd turbolift/examples/kubernetes_example
sh setup_cluster.sh
RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo run --features distributed