Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
eraser5th committed Sep 10, 2024
1 parent 4f10ea3 commit 67ca071
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/ci-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:


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

build:
steps:
- 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
Expand All @@ -42,7 +55,22 @@ jobs:
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
Expand Down

0 comments on commit 67ca071

Please sign in to comment.