File tree Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Pull Request Check
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ dev ]
6
+
7
+ env :
8
+ CARGO_TERM_COLOR : always
9
+
10
+ jobs :
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+
18
+ - name : Cache
19
+ uses : actions/cache@v2
20
+ with :
21
+ path : |
22
+ ./target
23
+ ~/.cargo
24
+ key : ${{ runner.os }}-${{ hashFiles('Cargo.toml') }}
25
+ restore-keys : ${{ runner.os }}
26
+
27
+ - name : Build
28
+ run : cargo build --verbose
29
+
30
+ - name : Run tests
31
+ run : cargo test --verbose
Original file line number Diff line number Diff line change 1
- name : Rust
1
+ name : Build code, run tests and deploy doc
2
2
3
3
on :
4
4
push :
5
- branches : [ master, dev ]
6
- pull_request :
7
- branches : [ master ]
5
+ branches : [ dev ]
8
6
9
7
env :
10
8
CARGO_TERM_COLOR : always
40
38
with :
41
39
github_token : ${{ secrets.GITHUB_TOKEN }}
42
40
publish_dir : ./target/doc
41
+ force_orphan : true
You can’t perform that action at this time.
0 commit comments