Files
orbien/.github/workflows/ci.yml
T

48 lines
996 B
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.88"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: server-ui/package-lock.json
- name: Build server-ui
working-directory: server-ui
run: |
npm ci
npm run build
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --workspace --locked --all-targets
- name: test
run: cargo test --workspace --locked
- name: build release bins
run: cargo build --release --locked -p orbien-server -p orbien-client