-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.13 KB
/
run.yml
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
name: Instrumentality Run.
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run:
name: Run.
runs-on: ubuntu-latest
steps:
- name: Git Checkout.
uses: actions/checkout@v3
- name: Start MongoDB.
uses: supercharge/[email protected]
with:
mongodb-version: '5.0'
mongodb-replica-set: itest
- name: Rust Toolchain.
uses: actions-rs/[email protected]
with:
toolchain: stable
override: true
- name: Create TLS certificates.
run: |
mkdir tls
openssl req -x509 -newkey rsa:4096 -keyout tls/privkey.pem -out tls/cert.pem -days 365 -nodes -subj '/CN=localhost'
- name: Create config file.
run: |
cp InstrumentalityExample.toml Instrumentality.toml
- name: Cargo Build for Release.
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Run.
run: |
cargo run --release > OUTPUT &
process_id=$!
sleep 30s
kill -9 $process_id
grep "READY: https://127.0.0.1:12321." OUTPUT