CI: Forgejo-Actions-Workflow (Multi-Repo: server+common als Siblings, sb-common-Patch-Pfad fuer CI umgeschrieben)
Some checks are pending
server-ci / build-test (push) Waiting to run
Some checks are pending
server-ci / build-test (push) Waiting to run
This commit is contained in:
parent
65a765e7af
commit
1efc75e9b3
1 changed files with 25 additions and 0 deletions
25
.forgejo/workflows/ci.yml
Normal file
25
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
name: server-ci
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-test:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Checkout server
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 "$GITHUB_SERVER_URL/jan/skara-brae-server.git" server
|
||||||
|
cd server && git checkout "$GITHUB_SHA"
|
||||||
|
|
||||||
|
- name: Checkout common (sibling)
|
||||||
|
run: git clone --depth 1 "$GITHUB_SERVER_URL/jan/skara-brae-common.git" common
|
||||||
|
|
||||||
|
- name: Patch sb-common path for CI
|
||||||
|
run: |
|
||||||
|
sed -i "s|/home/jan/Development/skara-brae/skara-brae-common/rust|$GITHUB_WORKSPACE/common/rust|g" server/Cargo.toml
|
||||||
|
grep -n "sb-common" server/Cargo.toml
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --workspace --manifest-path server/Cargo.toml
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: cargo test --workspace --manifest-path server/Cargo.toml
|
||||||
Loading…
Add table
Add a link
Reference in a new issue