Skip to content

Merge pull request #155 from GiganticMinecraft/renovate/anothrnick-gi… #381

Merge pull request #155 from GiganticMinecraft/renovate/anothrnick-gi…

Merge pull request #155 from GiganticMinecraft/renovate/anothrnick-gi… #381

Workflow file for this run

name: Lint and test
on: push
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: '0'
- uses: Swatinem/rust-cache@v2
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
# buildをしないと、src/protos/*.rsがないので次のstepでつまずく
- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
- name: Cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
- name: Cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features