Skip to content

Commit e16016e

Browse files
committed
update: code
1 parent 5532522 commit e16016e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/rust.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20-
- name: Install Rust Toolchain
20+
- name: Install rust-toolchain
2121
uses: dtolnay/rust-toolchain@stable
2222
with:
2323
toolchain: stable
2424
components: rustfmt, clippy
25-
- name: Cache Dependencies
25+
- name: Cache dependencies
2626
uses: actions/cache@v3
2727
with:
2828
path: |
2929
~/.cargo/registry
3030
~/.cargo/git
3131
target
3232
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
33-
- name: Install Toml Cli
33+
- name: Install toml-cli
3434
run: cargo install toml-cli
35-
- name: Cache Toml Cli
35+
- name: Cache toml-cli
3636
uses: actions/cache@v3
3737
with:
3838
path: ~/.cargo/bin/toml
3939
key: toml-cli-${{ runner.os }}
40-
- name: Read Cargo Metadata
40+
- name: Read cargo metadata
4141
id: read
4242
run: |
4343
VERSION=$(toml get Cargo.toml package.version --raw)
@@ -56,12 +56,12 @@ jobs:
5656
steps:
5757
- name: Checkout
5858
uses: actions/checkout@v4
59-
- name: Setup Rust
59+
- name: Setup rust
6060
uses: dtolnay/rust-toolchain@stable
6161
with:
6262
toolchain: stable
6363
components: rustfmt
64-
- name: Format Check
64+
- name: Format check
6565
run: cargo fmt -- --check
6666

6767
Tests:
@@ -70,11 +70,11 @@ jobs:
7070
steps:
7171
- name: Checkout
7272
uses: actions/checkout@v4
73-
- name: Prepare Environment
73+
- name: Prepare environment
7474
uses: dtolnay/rust-toolchain@stable
7575
with:
7676
toolchain: stable
77-
- name: Run Tests
77+
- name: Run tests
7878
run: cargo test --all-features -- --nocapture
7979

8080
Clippy:
@@ -83,12 +83,12 @@ jobs:
8383
steps:
8484
- name: Checkout
8585
uses: actions/checkout@v4
86-
- name: Load Clippy
86+
- name: Load clippy
8787
uses: dtolnay/rust-toolchain@stable
8888
with:
8989
toolchain: stable
9090
components: clippy
91-
- name: Run Clippy
91+
- name: Run clippy
9292
run: cargo clippy --all-features -- -A warnings
9393

9494
Build:
@@ -97,11 +97,11 @@ jobs:
9797
steps:
9898
- name: Checkout
9999
uses: actions/checkout@v4
100-
- name: Setup Build
100+
- name: Setup build
101101
uses: dtolnay/rust-toolchain@stable
102102
with:
103103
toolchain: stable
104-
- name: Build Release
104+
- name: Build release
105105
run: cargo check --release --all-features
106106

107107
Publish:
@@ -118,7 +118,7 @@ jobs:
118118
with:
119119
path: ~/.cargo/bin/toml
120120
key: toml-cli-${{ runner.os }}
121-
- name: Publish To Crates.io
121+
- name: Publish to crates.io
122122
id: publish
123123
env:
124124
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
@@ -152,11 +152,11 @@ jobs:
152152
uses: actions/checkout@v4
153153
with:
154154
fetch-depth: 0
155-
- name: Get Package Name
155+
- name: Get package name
156156
id: package_info
157157
run: |
158158
echo "package_name=${{ needs.Setup.outputs.package_name }}" >> $GITHUB_OUTPUT
159-
- name: Check Tag Status
159+
- name: Check tag status
160160
id: check_tag
161161
run: |
162162
if git tag -l | grep -q "^${{ needs.Setup.outputs.tag }}$"; then
@@ -173,7 +173,7 @@ jobs:
173173
echo "remote_tag_exists=false" >> $GITHUB_OUTPUT
174174
echo "🌐 Tag ${{ needs.Setup.outputs.tag }} does not exist on remote"
175175
fi
176-
- name: Check Release Status
176+
- name: Check release status
177177
id: check_release
178178
run: |
179179
if gh release view "${{ needs.Setup.outputs.tag }}" > /dev/null 2>&1; then
@@ -185,7 +185,7 @@ jobs:
185185
fi
186186
env:
187187
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188-
- name: Create Or Update Release
188+
- name: Create or update release
189189
id: release
190190
run: |
191191
set -e

0 commit comments

Comments
 (0)