mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-22 09:01:45 +03:00
fix remote repo in gitbutler-git tests
This commit is contained in:
parent
0fe1f93e89
commit
8e0ef27de8
15
.github/actions/init-env-rust/action.yaml
vendored
15
.github/actions/init-env-rust/action.yaml
vendored
@ -10,6 +10,19 @@ runs:
|
||||
prefix-key: gitbutler-client
|
||||
shared-key: rust
|
||||
|
||||
- name: placeholder for ui assets
|
||||
- name: Placeholder for ui assets
|
||||
shell: bash
|
||||
run: mkdir gitbutler-ui/build
|
||||
|
||||
- name: Check versions
|
||||
shell: bash
|
||||
run: |
|
||||
rustc --version
|
||||
cargo --version
|
||||
cargo fmt --version
|
||||
cargo clippy --version
|
||||
git --version
|
||||
which git-upload-pack
|
||||
which git-upload-archive
|
||||
which git-receive-pack
|
||||
ssh -V
|
||||
|
5
.github/workflows/push.yaml
vendored
5
.github/workflows/push.yaml
vendored
@ -3,6 +3,9 @@ on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: full
|
||||
|
||||
jobs:
|
||||
changes:
|
||||
runs-on: ubuntu-latest
|
||||
@ -140,6 +143,8 @@ jobs:
|
||||
- [git2]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# FIXME(qix-): figure out a way to make these build automatically with tests
|
||||
- run: cargo build --locked -p gitbutler-git --bin gitbutler-git-askpass --bin gitbutler-git-setsid
|
||||
- uses: ./.github/actions/check-crate
|
||||
with:
|
||||
crate: gitbutler-git
|
||||
|
@ -331,8 +331,15 @@ macro_rules! test_impl {
|
||||
.join(test_name)
|
||||
.to_string_lossy()
|
||||
.into_owned();
|
||||
let repo = $crate::backend::git2::Repository::<$crate::backend::git2::tokio::TokioThreadedResource>::open_or_init_bare(repo_path.clone());
|
||||
|
||||
::std::fs::create_dir_all(&repo_path).unwrap();
|
||||
|
||||
let repo = $crate::backend::git2::Repository::<
|
||||
$crate::backend::git2::tokio::TokioThreadedResource
|
||||
>::open_or_init_bare(repo_path.clone()).await.unwrap();
|
||||
|
||||
let server = $crate::private::TestSshServer::new(repo_path);
|
||||
|
||||
(server, repo)
|
||||
}.await;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user