Skip to content

Commit e649d08

Browse files
LoricAndredependabot[bot]LoricAndre
committed
chore: improve PR ci (#617)
* Bump unicode-width from 0.1.14 to 0.2.0 (#616) Bumps [unicode-width](https://github.com/unicode-rs/unicode-width) from 0.1.14 to 0.2.0. - [Commits](unicode-rs/unicode-width@v0.1.14...v0.2.0) --- updated-dependencies: - dependency-name: unicode-width dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump nix from 0.25.1 to 0.29.0 (#614) Bumps [nix](https://github.com/nix-rust/nix) from 0.25.1 to 0.29.0. - [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md) - [Commits](nix-rust/nix@v0.25.1...v0.29.0) --- updated-dependencies: - dependency-name: nix dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump env_logger from 0.9.3 to 0.11.5 (#615) Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.9.3 to 0.11.5. - [Release notes](https://github.com/rust-cli/env_logger/releases) - [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md) - [Commits](rust-cli/env_logger@v0.9.3...v0.11.5) --- updated-dependencies: - dependency-name: env_logger dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LoricAndre <[email protected]> * chore: improve PR ci * disable cache on fmt job * add title check * clean * Create pr.yml --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LoricAndre <[email protected]>
1 parent 24ccef1 commit e649d08

File tree

5 files changed

+64
-9
lines changed

5 files changed

+64
-9
lines changed

Diff for: .github/dependabot.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
commit-message:
8+
prefix: chore(deps)
9+
prefix-development: chore(dev-deps)

Diff for: .github/pr-title-checker-config.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"LABEL": {
3+
"name": "invalid-title",
4+
"color": "B60205"
5+
},
6+
"CHECKS": {
7+
"prefixes": [
8+
"feat: ",
9+
"feature: ",
10+
"fix: ",
11+
"bugfix: ",
12+
"perf: ",
13+
"refactor: ",
14+
"test: ",
15+
"tests: ",
16+
"build: ",
17+
"ci: ",
18+
"doc: ",
19+
"docs: ",
20+
"style: ",
21+
"chore: ",
22+
"other: "
23+
],
24+
"regexp": "^\\w+(\\([a-z_-]+\\))?: ",
25+
"regexpFlags": "",
26+
"ignoreLabels": [
27+
"skip-title-check"
28+
]
29+
},
30+
"MESSAGES": {
31+
"success": "PR title is valid",
32+
"failure": "PR title is invalid",
33+
"notice": ""
34+
}
35+
}

Diff for: .github/pull_request_template.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## Checklist
22

33
_check the box if it is not applicable to your changes_
4-
- [ ] The title of my PR follows the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) convention
54
- [ ] I have updated the README with the necessary documentation
65
- [ ] I have added unit tests
76
- [ ] I have added [end-to-end tests](test/test_skim.py)

Diff for: .github/workflows/pr.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "PR validation"
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
- labeled
9+
- unlabeled
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: write
16+
steps:
17+
- uses: thehanimo/[email protected]
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
pass_on_octokit_error: false
21+
configuration_path: .github/pr-title-checker-config.json

Diff for: .github/workflows/ci.yml renamed to .github/workflows/test.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
- master
99

1010
jobs:
11-
test:
12-
name: test
11+
e2e:
1312
runs-on: ${{matrix.os}}
1413
strategy:
1514
matrix:
@@ -54,18 +53,17 @@ jobs:
5453
toolchain: ${{ matrix.rust }}
5554
target: ${{ matrix.target }}
5655
override: true
56+
- name: Cache
57+
uses: Swatinem/rust-cache@v2
5758
- name: Build
5859
run: cargo build --release
5960
- name: Run Tests
6061
run: tmux new-session -d && python3 test/test_skim.py --verbose
6162
env:
6263
LC_ALL: en_US.UTF-8
6364
TERM: xterm-256color
64-
- name: Cache
65-
uses: Swatinem/rust-cache@v1
6665

6766
clippy:
68-
name: clippy
6967
runs-on: ${{matrix.os}}
7068
strategy:
7169
matrix:
@@ -111,13 +109,12 @@ jobs:
111109
target: ${{ matrix.target }}
112110
override: true
113111
components: clippy
112+
- name: Cache
113+
uses: Swatinem/rust-cache@v2
114114
- name: Clippy
115115
run: cargo clippy
116-
- name: Cache
117-
uses: Swatinem/rust-cache@v1
118116

119117
rustfmt:
120-
name: rustfmt
121118
runs-on: ubuntu-latest
122119
steps:
123120
- name: Checkout repository

0 commit comments

Comments
 (0)