-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 2.02 KB
/
e2e.yml
File metadata and controls
61 lines (59 loc) · 2.02 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
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 13 * * *"
name: E2E
jobs:
repository:
name: Daemon Repository Itest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: install pipebuilder mock server
run: cargo install pipebuilder_mock --bin mock
- name: install daemon
run: cargo install --path pipebased --bin piped
- name: clone repository
run: git clone https://github.com/pipebase/repository.git /tmp/repository
- name: setup data volume
run: ./e2e/setup-data-volume.sh -r /tmp/repository
- name: run pipebuilder mock server and daemon at background
run: sudo env "PATH=$PATH" ./e2e/setup-mock-daemon.sh
- uses: actions-rs/cargo@v1
with:
command: test
args: --package e2e --features itest repository::tests::test_repository
pipe:
name: Daemon Pipe Itest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: install pipebuilder mock server
run: cargo install pipebuilder_mock --bin mock
- name: install daemon
run: cargo install --path pipebased --bin piped
- name: clone repository
run: git clone https://github.com/pipebase/repository.git /tmp/repository
- name: setup data volume
run: ./e2e/setup-data-volume.sh -r /tmp/repository
- name: setup group and user
run: sudo groupadd pipebase --gid 10000 && sudo useradd pipebase --uid 10000 --gid 10000
- name: run pipebuilder mock server and daemon at background
run: sudo env "PATH=$PATH" ./e2e/setup-mock-daemon.sh
- uses: actions-rs/cargo@v1
with:
command: test
args: --package e2e --features itest pipe::tests::test_pipe