-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: メンテナンスされていない GitHub Action を更新する
- Loading branch information
Showing
1 changed file
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,11 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
# TODO: read from rust-toolchain.toml | ||
toolchain: "1.82.0" | ||
profile: "default" | ||
toolchain: 1.82.0 | ||
components: clippy, rustfmt | ||
|
||
# > selecting a toolchain either by action or manual `rustup` calls should happen | ||
# > before the plugin, as it uses the current rustc version as its cache key | ||
|
@@ -33,25 +33,22 @@ jobs: | |
- uses: bufbuild/buf-setup-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# GitHubのUIにエラー/警告を表示してくれるので actions-rs/cargo を利用している | ||
|
||
- name: Cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
uses: LoliGothick/rustfmt-check@master | ||
with: | ||
command: fmt | ||
args: --manifest-path server/Cargo.toml --all -- --check | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
flags: --all | ||
|
||
- name: Cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
uses: LoliGothick/[email protected] | ||
with: | ||
command: clippy | ||
args: --manifest-path server/Cargo.toml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
working-directory: ./server | ||
|
||
- name: Cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path server/Cargo.toml --all-features | ||
run: cargo test --all-features | ||
working-directory: ./server | ||
|
||
build-image: | ||
name: Build docker image (and publish on master) | ||
|