Skip to content

Commit

Permalink
ci: メンテナンスされていない GitHub Action を更新する
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Jan 26, 2025
1 parent 8742d66 commit 1c31f03
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 1c31f03

Please sign in to comment.