diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..833cf6e --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,16 @@ +name: ci +on: [push, pull_request] + +jobs: + check: + runs-on: self-hosted + steps: + - name: Checkout + run: | + git clone --depth 1 "$GITHUB_SERVER_URL/jan/rusty_emu.git" repo + cd repo && git checkout "$GITHUB_SHA" + + - name: Cargo check + test + run: | + cargo check --manifest-path repo/Cargo.toml + cargo test --manifest-path repo/Cargo.toml