Skip to content

Commit

Permalink
enh(adapters): Add 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 5657862 commit bdfe63e
Show file tree
Hide file tree
Showing 7 changed files with 1,073 additions and 27 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ jobs:
- webdav-html
- webdav-html-encrypted
- webdav-xbel-encrypted
- git-xbel
- git-html
- google-drive
- google-drive-encrypted
test-name:
Expand Down Expand Up @@ -232,6 +234,25 @@ jobs:
echo "Selenium Grid is up - executing tests"
- name: Setup git http server
run: |
mkdir __fixtures__
cd __fixtures__
git init --bar test.git
npx git-http-mock-server start
npx htpasswd -cb test.git/.htpasswd admin admin
if: matrix.floccus-adapter == 'git-xbel' || matrix.floccus-adapter == 'git-html'

- name: Run git adapter tests
working-directory: floccus
env:
SELENIUM_BROWSER: ${{ matrix.browsers }}
FLOCCUS_TEST: ${{matrix.floccus-adapter}} ${{ matrix.test-name}}
TEST_HOST: 172.17.0.1:8174
run: |
npm run test
if: matrix.floccus-adapter == 'git-xbel' || matrix.floccus-adapter == 'git-html'

- name: Run tests
working-directory: floccus
env:
Expand All @@ -242,6 +263,7 @@ jobs:
APP_VERSION: ${{ matrix.app-version }}
run: |
npm run test
if: matrix.floccus-adapter != 'git-xbel' && matrix.floccus-adapter != 'git-html'

summary:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit bdfe63e

Please sign in to comment.