Skip to content

Commit bddc1e9

Browse files
committed
github action.
1 parent 8483fb8 commit bddc1e9

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

.github/workflows/playwright.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [ main, master ]
5+
pull_request:
6+
branches: [ main, master ]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Install Playwright Browsers
19+
run: npx playwright install --with-deps
20+
- name: Run Playwright tests
21+
run: npm test

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# scrollparent.js
22

3+
![Build status][build-image]
34
[![NPM version][npm-image]][npm-url]
45
[![Size][size-image]][size-url]
56
[![Download count][downloads-image]][downloads-url]
67

7-
> A function to get the scrolling parent of an html element.
8+
A function to get the scrolling parent of a html element.
89

910
## Install
1011

@@ -42,17 +43,18 @@ you should use a `document.scrollingElement` polyfill such as
4243

4344
## Contributors
4445

45-
* Ola Holmström (@olahol)
46-
* Bart Nagel (@tremby)
47-
* Daniel White (@danbrianwhite)
46+
<a href="https://github.com/olahol/scrollparent.js/graphs/contributors">
47+
<img src="https://contrib.rocks/image?repo=olahol/scrollparent.js" />
48+
</a>
4849

4950
## License
5051

5152
MIT
5253

53-
[npm-image]: https://img.shields.io/npm/v/scrollparent.svg?style=flat-square
54+
[build-image]: https://github.com/olahol/scrollparent.js/actions/workflows/playwright.yml/badge.svg
55+
[npm-image]: https://img.shields.io/npm/v/scrollparent.svg
5456
[npm-url]: https://npmjs.org/package/scrollparent
55-
[downloads-image]: http://img.shields.io/npm/dm/scrollparent.svg?style=flat-square
57+
[downloads-image]: http://img.shields.io/npm/dm/scrollparent.svg
5658
[downloads-url]: https://npmjs.org/package/scrollparent
57-
[size-image]: https://badge-size.herokuapp.com/olahol/scrollparent.js/master/scrollparent.js?style=flat-square
58-
[size-url]: https://github.com/olahol/scrollparent.js/blob/master/react-tagsinput.js
59+
[size-image]: https://badge-size.herokuapp.com/olahol/scrollparent.js/master/scrollparent.js
60+
[size-url]: https://github.com/olahol/scrollparent.js/blob/master/scrollparent.js

0 commit comments

Comments
 (0)