mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-14 01:07:08 -06:00
/{.github,integration-tests}: log ci failures
This commit is contained in:
6
.github/workflows/ci-bats-macos.yaml
vendored
6
.github/workflows/ci-bats-macos.yaml
vendored
@@ -86,6 +86,12 @@ jobs:
|
||||
run: |
|
||||
dolt config --global --add user.name 'Dolthub Actions'
|
||||
dolt config --global --add user.email 'actions@dolthub.com'
|
||||
- name: Setup Git Config
|
||||
run: |
|
||||
git --version
|
||||
git config --global user.name 'Dolthub Actions'
|
||||
git config --global user.email 'actions@dolthub.com'
|
||||
git config --global init.defaultBranch main
|
||||
- name: Install Maven
|
||||
working-directory: ./.ci_bin
|
||||
run: |
|
||||
|
||||
6
.github/workflows/ci-bats-unix.yaml
vendored
6
.github/workflows/ci-bats-unix.yaml
vendored
@@ -96,6 +96,12 @@ jobs:
|
||||
run: |
|
||||
dolt config --global --add user.name 'Dolthub Actions'
|
||||
dolt config --global --add user.email 'actions@dolthub.com'
|
||||
- name: Setup Git Config
|
||||
run: |
|
||||
git --version
|
||||
git config --global user.name 'Dolthub Actions'
|
||||
git config --global user.email 'actions@dolthub.com'
|
||||
git config --global init.defaultBranch main
|
||||
- name: Install expect
|
||||
if: matrix.os == 'ubuntu-22.04'
|
||||
run: sudo apt-get install -y expect
|
||||
|
||||
6
.github/workflows/ci-bats-windows.yaml
vendored
6
.github/workflows/ci-bats-windows.yaml
vendored
@@ -149,6 +149,12 @@ jobs:
|
||||
run: |
|
||||
dolt config --global --add user.name 'Dolthub Actions'
|
||||
dolt config --global --add user.email 'actions@dolthub.com'
|
||||
- name: Setup Git Config
|
||||
run: |
|
||||
git --version
|
||||
git config --global user.name 'Dolthub Actions'
|
||||
git config --global user.email 'actions@dolthub.com'
|
||||
git config --global init.defaultBranch main
|
||||
- name: Test file
|
||||
run: bats --tap ${{ matrix.file }}
|
||||
working-directory: ./integration-tests/bats
|
||||
|
||||
@@ -25,7 +25,24 @@ teardown() {
|
||||
# Helper function to create a bare git repository
|
||||
create_bare_git_repo() {
|
||||
local name=$1
|
||||
git init --bare "git-remotes/${name}.git" > /dev/null 2>&1
|
||||
local repo_path="git-remotes/${name}.git"
|
||||
|
||||
# Debug output
|
||||
echo "DEBUG: Creating bare git repo: ${repo_path}"
|
||||
echo "DEBUG: Current directory: $(pwd)"
|
||||
echo "DEBUG: PATH=${PATH}"
|
||||
echo "DEBUG: which git: $(which git 2>&1)"
|
||||
echo "DEBUG: git --version: $(git --version 2>&1)"
|
||||
echo "DEBUG: /usr/bin/git exists: $(test -x /usr/bin/git && echo 'yes' || echo 'no')"
|
||||
|
||||
# Try to create the repo
|
||||
if ! git init --bare "${repo_path}"; then
|
||||
echo "DEBUG: git init failed with exit code $?"
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "DEBUG: Successfully created ${repo_path}"
|
||||
ls -la "${repo_path}"
|
||||
}
|
||||
|
||||
@test "remotes-git: remote init creates dolt structure" {
|
||||
|
||||
Reference in New Issue
Block a user