Skip to content

Commit

Permalink
wip: setup tests with playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
d-koppenhagen committed Mar 16, 2024
1 parent e9a9d73 commit 0cee320
Show file tree
Hide file tree
Showing 55 changed files with 1,109 additions and 850 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm i --legacy-peer-deps
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ coverage

# generate types
components/*.d.ts
/test-results/
/playwright-report/
/playwright/.cache/
1 change: 1 addition & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I added a new test.

If you added a new component feature (layer, geom, source, etc.), please be sure to update the documentation:

Expand Down
8 changes: 5 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from "vitepress";
import { defineConfig, SiteConfig, UserConfig } from "vitepress";

// https://vitepress.vuejs.org/reference/site-config
export default defineConfig({
export const config: UserConfig = {
// https://MelihAltintas.github.com/vue3-openlayers
// base: '/vue3-openlayers/',
title: "vue3-openlayers",
Expand Down Expand Up @@ -414,4 +414,6 @@ export default defineConfig({
provider: "local",
},
},
});
};

export default defineConfig(config);
Loading

0 comments on commit 0cee320

Please sign in to comment.