@@ -3,106 +3,108 @@ name: CI
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - main
7
7
8
8
pull_request :
9
9
branches :
10
- - main
10
+ - main
11
11
12
12
jobs :
13
13
checks :
14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
- - uses : actions/checkout@v2
17
+ - uses : actions/checkout@v2
18
18
19
- - name : Setup Rust toolchain
20
- shell : bash
21
- run : rustup default stable
19
+ - name : Setup Rust toolchain
20
+ shell : bash
21
+ run : rustup default stable
22
22
23
- - name : Rustfmt
24
- shell : bash
25
- run : cargo fmt -- --check
23
+ - name : Rustfmt
24
+ shell : bash
25
+ run : cargo fmt -- --check
26
26
27
- - name : Clippy
28
- shell : bash
29
- run : cargo clippy
27
+ - name : Clippy
28
+ shell : bash
29
+ run : cargo clippy
30
30
31
31
build :
32
32
needs : checks
33
- timeout-minutes : 15
33
+ timeout-minutes : 20
34
34
strategy :
35
35
matrix :
36
- os : [windows-latest, ubuntu-latest]
37
- rust_version : [stable, "1.66.0"]
36
+ os : [windows-latest, ubuntu-latest]
37
+ rust_version : [stable, "1.66.0"]
38
38
39
- runs-on : ${{ matrix.os }}
39
+ runs-on : ${{ matrix.os }}
40
40
steps :
41
- - uses : actions/checkout@v2
42
-
43
- - name : Setup Rust toolchain
44
- shell : bash
45
- run : rustup default ${{ matrix.rust_version }}
41
+ - uses : actions/checkout@v2
46
42
47
- - name : Build
48
- shell : bash
49
- run : cargo build --locked --verbose
43
+ - name : Setup Rust toolchain
44
+ run : rustup default ${{ matrix.rust_version }}
50
45
51
- - name : Run tests
52
- shell : bash
53
- run : cargo test --locked --verbose
46
+ - name : Build
47
+ run : cargo build --locked --verbose
54
48
55
- end-to-end-tests :
56
- strategy :
57
- matrix :
58
- os : [ubuntu-latest, windows-latest]
49
+ - name : Run tests
50
+ run : cargo test --locked --verbose
59
51
60
- runs-on : ${{ matrix.os }}
52
+ end-to-end-tests-ubuntu :
53
+ runs-on : ubuntu-latest
61
54
needs : build
62
-
63
55
steps :
64
- - uses : actions/checkout@v2
65
-
66
- - name : End-to-end tests
67
- shell : bash
68
- run : |
69
- cargo install --path .
70
- foreman --version
71
- PATH=$PATH:~/.foreman/bin
72
- ./scripts/end-to-end-tests.sh
73
-
74
- kill-process-test-unix :
75
- strategy :
76
- matrix :
77
- os : [ubuntu-latest]
78
-
79
- runs-on : ${{ matrix.os }}
56
+ - uses : actions/checkout@v2
57
+
58
+ - name : End-to-end tests ubuntu
59
+ shell : bash
60
+ run : |
61
+ cargo install --path .
62
+ foreman --version
63
+ PATH=$PATH:~/.foreman/bin
64
+ ./scripts/end-to-end-tests.sh
65
+
66
+ end-to-end-tests-windows :
67
+ runs-on : windows-latest
80
68
needs : build
81
69
steps :
82
- - uses : actions/checkout@v2
83
-
84
- - name : kill-process-test-unix
85
- shell : bash
86
- run : |
87
- cargo install --path .
88
- foreman --version
89
- PATH=$PATH:~/.foreman/bin
90
- ./scripts/kill-process-test-unix.sh
91
-
92
- kill-process-test-windows :
93
- strategy :
94
- matrix :
95
- os : [windows-latest]
96
- runs-on : ${{ matrix.os }}
70
+ - uses : actions/checkout@v2
71
+
72
+ - name : install foreman from source
73
+ shell : pwsh
74
+ run : |
75
+ cargo install --path .
76
+ foreman --version
77
+
78
+ - name : End-to-end tests windows
79
+ shell : bash
80
+ run : |
81
+ PATH=$PATH:~/.foreman/bin
82
+ ./scripts/end-to-end-tests.sh
83
+
84
+ kill-process-test-unix :
85
+ runs-on : ubuntu-latest
97
86
needs : build
98
87
steps :
99
- - uses : actions/checkout@v2
88
+ - uses : actions/checkout@v2
100
89
101
- - name : kill-process-test-windows
102
- shell : pwsh
103
- run : |
104
- cargo install --path .
105
- foreman --version
106
- $env:Path += '%USERPROFILE% /.foreman/bin'
107
- .\ scripts\ kill-process-test-windows.ps1
90
+ - name : kill-process-test-unix
91
+ shell : bash
92
+ run : |
93
+ cargo install --path .
94
+ foreman --version
95
+ PATH=$PATH:~ /.foreman/bin
96
+ ./ scripts/ kill-process-test-unix.sh
108
97
98
+ kill-process-test-windows :
99
+ runs-on : windows-latest
100
+ needs : build
101
+ steps :
102
+ - uses : actions/checkout@v2
103
+
104
+ - name : kill-process-test-windows
105
+ shell : pwsh
106
+ run : |
107
+ cargo install --path .
108
+ foreman --version
109
+ $env:Path += '%USERPROFILE%/.foreman/bin'
110
+ .\scripts\kill-process-test-windows.ps1
0 commit comments