Skip to content

Commit

Permalink
fix(tests): Make ci work for git adapter
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jan 13, 2024
1 parent bdfe63e commit 054bc8c
Show file tree
Hide file tree
Showing 3 changed files with 2,268 additions and 166 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,24 @@ jobs:
mkdir __fixtures__
cd __fixtures__
git init --bar test.git
npx git-http-mock-server start
npx git-http-server &
npx htpasswd -cb test.git/.htpasswd admin admin
if: matrix.floccus-adapter == 'git-xbel' || matrix.floccus-adapter == 'git-html'

- name: Setup git remote repo
run: |
mkdir __repo__
cd __repo__
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git init -b main
git remote add origin http://localhost:8174/test.git
echo '# test' >> README.md
git add README.md
git commit -m 'Add README'
git push origin main
if: matrix.floccus-adapter == 'git-xbel' || matrix.floccus-adapter == 'git-html'

- name: Run git adapter tests
working-directory: floccus
env:
Expand Down
Loading

0 comments on commit 054bc8c

Please sign in to comment.