Skip to content

Simplify CI/CD pipeline configuration #15

Simplify CI/CD pipeline configuration

Simplify CI/CD pipeline configuration #15

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Start Services
run: |
docker-compose up -d
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy
- uses: swatinem/[email protected]
- name: Rust fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features
- name: Build release
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all --release --all-features
- name: Run Test
uses: actions-rs/cargo@v1
with:
command: test
args: --release --all-features