Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: メンテナンスされていない GitHub Action を更新する
Browse files Browse the repository at this point in the history
rito528 committed Jan 26, 2025

Verified

This commit was signed with the committer’s verified signature.
1 parent 8742d66 commit 96dfe34
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -16,11 +16,10 @@ 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

# > 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 +32,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)

0 comments on commit 96dfe34

Please sign in to comment.