- Fix all workflows to use /opt/gbo/work/generalbots (monorepo) - Add proper env vars (SCCACHE, CARGO_TARGET_DIR, PATH) to all workflows - Add deploy steps for botui (with process restart) - Remove broken workflows for non-Rust packages (botapp, botbook, botdevice, botmodels, botplugin) - Add botlib test workflow
27 lines
643 B
YAML
27 lines
643 B
YAML
name: Bottest CI
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'bottest/**'
|
|
- 'botlib/**'
|
|
- '.forgejo/workflows/bottest.yaml'
|
|
env:
|
|
SCCACHE_DIR: /opt/gbo/work/.sccache
|
|
CARGO_TARGET_DIR: /opt/gbo/work/target
|
|
RUSTC_WRAPPER: sccache
|
|
PATH: /home/gbuser/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
jobs:
|
|
build:
|
|
runs-on: gbo
|
|
steps:
|
|
- name: Setup
|
|
run: |
|
|
cd /opt/gbo/work/generalbots
|
|
git reset --hard HEAD
|
|
git clean -fd
|
|
git pull
|
|
- name: Test
|
|
run: |
|
|
cd /opt/gbo/work/generalbots
|
|
cargo test -p bottest
|