Commit 07115d4 1 parent 77d8e24 commit 07115d4 Copy full SHA for 07115d4
File tree 8 files changed +36
-25
lines changed
8 files changed +36
-25
lines changed Original file line number Diff line number Diff line change 1
- name : build
1
+ name : " build"
2
2
3
3
permissions : {}
4
4
5
5
on :
6
+ # run "test" job on push events as well to get main branch coverage
6
7
push :
7
8
branches : [ main ]
8
9
pull_request :
9
- branches : [ main ]
10
10
11
11
env :
12
12
CARGO_TERM_COLOR : always
13
13
14
14
jobs :
15
15
build :
16
+ name : " cargo build"
17
+ if : github.event_name == 'pull_request'
16
18
permissions :
17
19
contents : read
18
20
runs-on : ubuntu-22.04
36
38
- run : cargo +${{ steps.toolchain.outputs.name }} build --all-targets --all-features --verbose
37
39
38
40
test :
39
- name : " test (with coverage)"
41
+ name : " cargo test (with coverage)"
40
42
permissions :
41
43
contents : read
42
44
runs-on : ubuntu-22.04
81
83
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
82
84
83
85
test-careful :
84
- name : " test (carefully)"
86
+ if : github.event_name == 'pull_request'
87
+ name : " cargo test (carefully)"
85
88
permissions :
86
89
contents : read
87
90
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change 1
- name : cog check
1
+ name : " conventional commits "
2
2
3
3
permissions : {}
4
4
5
5
on :
6
- pull_request :
7
- branches : [ main ]
6
+ pull_request :
8
7
9
8
jobs :
10
- check-conventional-commits :
11
- name : check conventional commit compliance
9
+ cog-check :
10
+ name : " cog check "
12
11
permissions :
13
12
contents : read
14
13
runs-on : ubuntu-22.04
17
16
with :
18
17
egress-policy : audit
19
18
20
- - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
19
+ - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
21
20
with :
22
21
fetch-depth : 0
23
22
# pick the pr HEAD instead of the merge commit
Original file line number Diff line number Diff line change 1
- name : cargo deny
1
+ name : " deny"
2
2
3
3
permissions : {}
4
4
10
10
11
11
jobs :
12
12
cargo-deny :
13
+ name : " cargo deny"
13
14
permissions :
14
15
contents : read
15
16
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change 1
- name : docs
1
+ name : " docs"
2
2
3
3
permissions : {}
4
4
5
5
on :
6
6
pull_request :
7
+ # run "deploy-pages" job to deploy main branch to GitHub pages
7
8
push :
8
- branches :
9
- - main
9
+ branches : [ "main" ]
10
10
11
11
jobs :
12
12
build-rustdoc :
13
+ name : " cargo doc"
13
14
permissions :
14
15
contents : read
15
16
runs-on : ubuntu-22.04
42
43
path : target/doc/
43
44
44
45
deploy-pages :
46
+ name : " deploy GitHub pages"
45
47
if : github.event_name == 'push'
46
48
permissions :
47
49
id-token : write
Original file line number Diff line number Diff line change 1
- name : lint
1
+ name : " lint"
2
2
3
3
permissions : {}
4
4
5
5
on :
6
6
pull_request :
7
- branches : [ main ]
8
7
9
8
env :
10
9
RUSTFLAGS : -Dwarnings
11
10
12
11
jobs :
13
12
cargo-fmt :
13
+ name : " cargo fmt"
14
14
permissions :
15
15
contents : read
16
16
runs-on : ubuntu-22.04
30
30
- run : cargo +${{ steps.toolchain.outputs.name }} fmt --all --check
31
31
32
32
cargo-clippy :
33
+ name : " cargo clippy"
33
34
permissions :
34
35
contents : read
35
36
runs-on : ubuntu-22.04
49
50
- run : cargo +${{ steps.toolchain.outputs.name }} clippy --all-targets --all-features
50
51
51
52
cargo-rustdoc-clippy :
53
+ name : " cargo rustdoc-clippy"
52
54
permissions :
53
55
contents : read
54
56
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change 1
- name : release-plz
1
+ name : " release-plz"
2
2
3
3
permissions : {}
4
4
5
5
on :
6
6
push :
7
- branches :
8
- - main
7
+ branches : [ "main" ]
9
8
10
9
jobs :
11
10
release-plz :
Original file line number Diff line number Diff line change 1
- name : REUSE compliance check
1
+ name : " REUSE"
2
2
3
3
permissions : {}
4
4
5
- on : [push, pull_request]
5
+ on :
6
+ # also run on push to main branch for badge
7
+ push :
8
+ branches : [ main ]
9
+ pull_request :
6
10
7
11
jobs :
8
- test :
12
+ lint :
13
+ name : " reuse lint"
9
14
permissions :
10
15
contents : read
11
16
runs-on : ubuntu-latest
12
17
steps :
13
18
- uses : step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
14
19
with :
15
20
egress-policy : audit
16
- - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
21
+ - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
17
22
- name : REUSE Compliance Check
18
23
uses : fsfe/reuse-action@4f2804894b54004c8ed4b8a62b7c649e54a3aa4b # v2.0.0
Original file line number Diff line number Diff line change 1
- name : Scorecards supply-chain security
1
+ name : " scorecards "
2
2
3
3
permissions : read-all
4
4
11
11
12
12
jobs :
13
13
analysis :
14
- name : Scorecards analysis
14
+ name : " scorecards analysis"
15
15
runs-on : ubuntu-latest
16
16
permissions :
17
17
security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
You can’t perform that action at this time.
0 commit comments