Skip to content

11 configure cicd

11 configure cicd #28

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/rust-toolchain@stable
- run: cargo build-backend
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/rust-toolchain@stable
- run: cargo build-frontend
build-all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/rust-toolchain@stable
- run: cargo build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/rust-toolchain@stable
- run: cargo test
fmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/rust-toolchain@stable
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/rust-toolchain@stable
- run: cargo clippy