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 14fb7cb
Show file tree
Hide file tree
Showing 3 changed files with 2,266 additions and 166 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,22 @@ 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 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 14fb7cb

Please sign in to comment.