Skip to content

Commit 6e3309a

Browse files
Merge branch 'main' into dependabot/github_actions/docker/setup-qemu-action-3
2 parents 1c086f6 + 1a36933 commit 6e3309a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4542
-3553
lines changed

.github/dependabot.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ updates:
77
prefix: bump
88
directory: "/"
99
schedule:
10-
interval: "daily"
10+
interval: "monthly"
11+
open-pull-requests-limit: 3
1112

1213
# Maintain dependencies for Docker
1314
- package-ecosystem: "docker"
@@ -16,13 +17,15 @@ updates:
1617
prefix: bump
1718
directory: "/"
1819
schedule:
19-
interval: "daily"
20+
interval: "monthly"
21+
open-pull-requests-limit: 3
2022

2123
# Maintain dependencies for GitHub Action
2224
- package-ecosystem: "github-actions"
2325
directory: "/"
2426
schedule:
25-
interval: "daily"
27+
interval: "monthly"
28+
open-pull-requests-limit: 3
2629

2730
# Maintain dependencies for npm
2831
- package-ecosystem: "npm"
@@ -31,4 +34,5 @@ updates:
3134
prefix: bump
3235
directory: "/web"
3336
schedule:
34-
interval: "daily"
37+
interval: "monthly"
38+
open-pull-requests-limit: 3

.github/workflows/bump.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Bump
2+
on:
3+
release:
4+
types:
5+
- published
6+
7+
permissions:
8+
contents: write # To checkout and create PRs
9+
pull-requests: write # To comment to PRs
10+
11+
jobs:
12+
bump:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- id: bump
18+
uses: tj-actions/cargo-bump@v3
19+
20+
- uses: peter-evans/create-pull-request@v6
21+
with:
22+
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
23+
branch: "bump-${{ steps.bump.outputs.new_version }}"
24+
commit-message: "bump(cli): bump version to ${{ steps.bump.outputs.new_version }}"
25+
title: "bump(cli): bump version to ${{ steps.bump.outputs.new_version }}"

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- uses: actions-rs/toolchain@v1
1111
with:
1212
toolchain: nightly
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
tag: [cli, default]
2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- uses: actions/cache@v3
2929
with:
3030
path: |
@@ -50,7 +50,7 @@ jobs:
5050
test:
5151
runs-on: ubuntu-latest
5252
steps:
53-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
5454
- uses: actions-rs/toolchain@v1
5555
with:
5656
toolchain: nightly

.github/workflows/lint.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,20 @@ permissions:
1111
pull-requests: write # To comment to PRs
1212

1313
jobs:
14+
actionlint:
15+
name: actionlint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: reviewdog/action-actionlint@v1
21+
with:
22+
reporter: github-pr-review
23+
1424
alex:
1525
runs-on: ubuntu-latest
1626
steps:
17-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
1828

1929
- uses: reviewdog/action-alex@v1
2030
with:
@@ -28,7 +38,7 @@ jobs:
2838
clippy:
2939
runs-on: ubuntu-latest
3040
steps:
31-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
3242
- uses: actions-rs/toolchain@v1
3343
with:
3444
toolchain: nightly
@@ -39,15 +49,15 @@ jobs:
3949
with:
4050
command: clippy
4151

42-
- uses: sksat/action-clippy@v0.2.1
52+
- uses: sksat/action-clippy@v1.0.0
4353
with:
4454
reporter: github-pr-review
4555

4656
markdown:
4757
name: markdown
4858
runs-on: ubuntu-latest
4959
steps:
50-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
5161
- uses: reviewdog/action-markdownlint@v0
5262
with:
5363
level: warning
@@ -58,7 +68,7 @@ jobs:
5868
name: misspell
5969
runs-on: ubuntu-latest
6070
steps:
61-
- uses: actions/checkout@v3
71+
- uses: actions/checkout@v4
6272

6373
- uses: reviewdog/action-misspell@v1
6474
with:
@@ -77,7 +87,7 @@ jobs:
7787
[A-Z]+
7888
requireScope: true
7989
subjectPattern: ^(?![A-Z]).+$
80-
scope: |
90+
scopes: |
8191
.github
8292
cli
8393
deps

.github/workflows/release.yaml

Lines changed: 61 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,58 @@ permissions:
1414
pages: write # To deploy to GitHub Pages
1515

1616
jobs:
17+
build:
18+
runs-on: ${{ matrix.config.os }}
19+
strategy:
20+
fail-fast: true
21+
matrix:
22+
config:
23+
# See details fore GitHub Actions runners
24+
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
25+
- os: ubuntu-20.04
26+
rust_target: x86_64-unknown-linux-gnu
27+
ext: ""
28+
args: ""
29+
- os: macos-latest
30+
rust_target: x86_64-apple-darwin
31+
ext: ""
32+
args: ""
33+
- os: macos-14 # beta (Apple Silicon)
34+
rust_target: aarch64-apple-darwin
35+
ext: ""
36+
args: ""
37+
- os: windows-latest
38+
rust_target: x86_64-pc-windows-msvc
39+
ext: ".exe"
40+
args: ""
41+
- os: windows-latest
42+
rust_target: aarch64-pc-windows-msvc
43+
ext: ".exe"
44+
args: "--no-default-features --features native-tls-vendored"
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- uses: actions-rs/toolchain@v1
49+
with:
50+
profile: minimal
51+
toolchain: stable
52+
override: true
53+
54+
- run: cargo build --release
55+
56+
- run: tar czvf commitlint-${{ github.ref_name }}-${{ matrix.config.rust_target }}.tar.gz -C target/release commitlint${{ matrix.config.ext }}
57+
58+
- uses: actions/upload-artifact@v4
59+
with:
60+
name: commitlint-${{ matrix.config.rust_target }}
61+
path: commitlint-${{ github.ref_name }}-${{ matrix.config.rust_target }}.tar.gz
62+
if-no-files-found: error
63+
1764
crate:
1865
runs-on: ubuntu-latest
1966
environment: crate
2067
steps:
21-
- uses: actions/checkout@v3
68+
- uses: actions/checkout@v4
2269
- uses: actions-rs/toolchain@v1
2370
with:
2471
toolchain: stable
@@ -44,12 +91,12 @@ jobs:
4491
- info
4592
steps:
4693
- uses: docker/setup-qemu-action@v3
47-
- uses: docker/setup-buildx-action@v2
48-
- uses: docker/login-action@v2
94+
- uses: docker/setup-buildx-action@v3
95+
- uses: docker/login-action@v3
4996
with:
5097
username: ${{ secrets.DOCKERHUB_USERNAME }}
5198
password: ${{ secrets.DOCKERHUB_TOKEN }}
52-
- uses: docker/build-push-action@v4
99+
- uses: docker/build-push-action@v6
53100
with:
54101
platforms: linux/amd64,linux/arm64
55102
push: true
@@ -68,12 +115,19 @@ jobs:
68115
publish:
69116
runs-on: ubuntu-latest
70117
needs:
118+
- build
71119
- crate
72120
- docker
73121
- web
74122
steps:
123+
- uses: actions/download-artifact@v4
124+
with:
125+
path: commitlint
126+
pattern: commitlint-*
127+
merge-multiple: true
75128
- uses: ncipollo/release-action@v1
76129
with:
130+
artifacts: commitlint/commitlint-*.tar.gz
77131
generateReleaseNotes: true
78132

79133
web:
@@ -82,9 +136,9 @@ jobs:
82136
name: web
83137
url: ${{ steps.deployment.outputs.page_url }}
84138
steps:
85-
- uses: actions/checkout@v3
86-
- uses: withastro/action@v0
139+
- uses: actions/checkout@v4
140+
- uses: withastro/action@v2
87141
with:
88142
path: ./web
89143
- id: deployment
90-
uses: actions/deploy-pages@v2
144+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
.commitlintrc.*

.pre-commit-hooks.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- id: commitlint
2+
name: Assert Conventional Commit Messages
3+
description: 'Asserts that Conventional Commits have been used for all commit messages according to the rules for this repo.'
4+
entry: commitlint --edit
5+
language: rust
6+
stages: [prepare-commit-msg]
7+
pass_filenames: false
8+
require_serial: true
9+
verbose: true

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"DavidAnson.vscode-markdownlint",
4+
"esbenp.prettier-vscode",
5+
"rust-lang.rust-analyzer",
6+
"streetsidesoftware.code-spell-checker",
7+
"usernamehw.errorlens"
8+
]
9+
}

.vscode/launch.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug executable 'commitlint'",
11+
"cargo": {
12+
"args": ["build", "--bin=commitlint", "--package=commitlint-rs"],
13+
"filter": {
14+
"name": "commitlint",
15+
"kind": "bin"
16+
}
17+
},
18+
"args": [],
19+
"cwd": "${workspaceFolder}"
20+
},
21+
{
22+
"type": "lldb",
23+
"request": "launch",
24+
"name": "Debug unit tests in executable 'commitlint'",
25+
"cargo": {
26+
"args": [
27+
"test",
28+
"--no-run",
29+
"--bin=commitlint",
30+
"--package=commitlint-rs"
31+
],
32+
"filter": {
33+
"name": "commitlint",
34+
"kind": "bin"
35+
}
36+
},
37+
"args": [],
38+
"cwd": "${workspaceFolder}"
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)