Skip to content

Commit

Permalink
ciのjobsを分けてみた
Browse files Browse the repository at this point in the history
  • Loading branch information
eraser5th committed Sep 10, 2024
1 parent 1714361 commit 6daeb09
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: CI
on:
push:
paths:
- "backend/**"
- "./**"
workflow_dispatch:


jobs:
build:
setup:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -25,10 +25,14 @@ jobs:
with:
workspaces: backend

build:
steps:
- name: Build project
run: |
cargo build
lint:
steps:
- name: lint check
run: |
cargo clippy
Expand All @@ -37,6 +41,8 @@ jobs:
run: |
cargo fmt --check
test:
steps:
- name: test
run: |
cargo test
Expand Down

0 comments on commit 6daeb09

Please sign in to comment.