Skip to content

Commit

Permalink
fixx ci
Browse files Browse the repository at this point in the history
  • Loading branch information
noharu36 authored and noharu36 committed Sep 10, 2024
1 parent 37b4ea5 commit df6d50d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
38 changes: 30 additions & 8 deletions .github/workflows/ci-backend.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: CI

on:
push:
paths:
- "backend/**"
workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -19,24 +16,49 @@ jobs:

- name: Checkout
uses: actions/checkout@v4

- name: Restore Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: backend

- name: Build project
run: |
cargo build
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Checkout
uses: actions/checkout@v4
- name: Restore Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: backend
- name: lint check
run: |
cargo clippy
- name: format check
run: |
cargo fmt --check
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Checkout
uses: actions/checkout@v4
- name: Restore Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: backend
- name: test
run: |
cargo test
4 changes: 2 additions & 2 deletions backend/src/usecase/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ mod test {

#[tokio::test]
async fn チャンネルに参加しているユーザーの一覧を取得する() {
// SeaORMのMockの仕様上, find_with_related()のシミュレートが出来ないためテストが不可能
// SeaORMのMockの仕様上find_with_related()のシミュレートが出来ないためテストが不可能
}

#[tokio::test]
async fn 全てのメッセージを取得する() {
// SeaORMのMockの仕様上, find_with_related()のシミュレートが出来ないためテストが不可能
// SeaORMのMockの仕様上find_with_related()のシミュレートが出来ないためテストが不可能
}
}

0 comments on commit df6d50d

Please sign in to comment.