Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework to ESM + Playwright tests #705

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"es6": true
},
"extends": "airbnb-base",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
},
"ignorePatterns": [
"dist/*",
"example/*",
"test/*",
"playwright.config.js",
"test-legacy/*"
]
}
File renamed without changes.
File renamed without changes.
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: 16
- name: Install dependencies
run: npm ci
- 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
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ node_modules
npm-debug.log
.DS_Store
Thumbs.db
package-lock.json
.idea/*
test/test.html
.parcel-cache/*

# Playwright tests
/test-results/
/playwright-report/
/playwright/.cache/
3 changes: 0 additions & 3 deletions .jshintignore

This file was deleted.

23 changes: 0 additions & 23 deletions .jshintrc

This file was deleted.

11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions readme.markdown → README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![logo.png][3]][2]

[![Travis CI][5]][4]
[![Test Workflow][4]][5]
[![Dependencies][6]][7]
[![Dev Dependencies][17]][18]
[![Patreon][19]][20]
Expand Down Expand Up @@ -315,8 +315,8 @@ MIT
[1]: https://github.com/bevacqua/dragula/blob/master/resources/demo.png
[2]: http://bevacqua.github.io/dragula/
[3]: https://github.com/bevacqua/dragula/blob/master/resources/logo.png
[4]: https://travis-ci.org/bevacqua/dragula
[5]: https://travis-ci.org/bevacqua/dragula.svg
[4]: https://github.com/bevacqua/dragula/actions/workflows/tests/badge.svg
[5]: https://github.com/bevacqua/dragula/actions/workflows/tests.yml
[6]: https://david-dm.org/bevacqua/dragula.svg
[7]: https://david-dm.org/bevacqua/dragula
[8]: https://github.com/bevacqua/angularjs-dragula
Expand Down
33 changes: 0 additions & 33 deletions classes.js

This file was deleted.

2 changes: 2 additions & 0 deletions dist/dragula-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/dragula-min.js.map

Large diffs are not rendered by default.

Loading