Merge changes If17a4475,Ibe078078
* changes:
Add dependabot config
Add CI test
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..122534f
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,6 @@
+version: 2
+updates:
+ - package-ecosystem: 'npm'
+ directory: '/'
+ schedule:
+ interval: 'daily'
diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml
new file mode 100644
index 0000000..021a44a
--- /dev/null
+++ b/.github/workflows/ci_test.yml
@@ -0,0 +1,28 @@
+name: CI Test
+
+on: [push, pull_request]
+
+jobs:
+ ci-test:
+ runs-on: ubuntu-latest
+ env:
+ KORAP_URL: https://korap.ids-mannheim.de/
+ KORAP_LOGIN: ""
+ KORAP_QUERIES: 'geht, [orth=geht & tt/pos=VVFIN]'
+ steps:
+ - name: Checkout KorAP-E2E-Tests
+ uses: actions/checkout@v3
+ - name: Set up Node.js
+ uses: actions/setup-node@v3
+ with:
+ cache: npm
+ node-version: latest
+ - name: Install dependencies
+ run: npm ci
+ - name: Setup cache for Chromium binary
+ uses: actions/cache@v3
+ with:
+ path: ~/.cache/puppeteer/chrome
+ key: ubuntu-latest-chromium-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}
+ - name: Test end-to-end tests
+ run: npm test