Skip to content

備品情報登録のエンドポイントを実装 #29

備品情報登録のエンドポイントを実装

備品情報登録のエンドポイントを実装 #29

Workflow file for this run

name: CI
on: [push, pull_request]
env:
DATABASE_URL: postgresql://localhost:5432/postgres?user=postgres&password=postgres
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: |
apt install postgresql
cargo test
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
override: true
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
override: true
- run: cargo clippy -- -D warnings