Skip to content

Commit 71ceac9

Browse files
authored
Add Test (#81)
* Add Test * Update Screenshot Sizes * Add timeout to scrollPage
1 parent c7dd8f5 commit 71ceac9

12 files changed

Lines changed: 1375 additions & 243 deletions

File tree

.github/workflows/test.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: "Test"
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
name: "Test"
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
if: ${{ !contains(github.event.head_commit.message, '#notest') }}
16+
17+
steps:
18+
- name: "Checkout"
19+
uses: actions/checkout@v4
20+
21+
- name: "Setup Node"
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
26+
- name: "Install"
27+
run: |
28+
npm install
29+
30+
- name: "Lint"
31+
run: |
32+
npm run lint
33+
34+
- name: "Test"
35+
run: |
36+
npm run test
37+
38+
- name: "Push Artifacts"
39+
uses: cssnr/push-artifacts-action@master
40+
with:
41+
path: "tests/screenshots/"
42+
host: ${{ secrets.RSYNC_HOST }}
43+
user: ${{ secrets.RSYNC_USER }}
44+
pass: ${{ secrets.RSYNC_PASS }}
45+
port: ${{ secrets.RSYNC_PORT }}
46+
base: "/static"
47+
webhost: "https://artifacts.hosted-domains.com"
48+
webhook: ${{ secrets.DISCORD_WEBHOOK }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
build/
66
node_modules/
77
web-ext-artifacts/
8+
tests/screenshots/
89
src/manifest.json

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ Website: https://link-extractor.cssnr.com/
3030
[![Firefox](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/firefox_48.png)](https://addons.mozilla.org/addon/link-extractor)
3131
[![Edge](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/edge_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
3232
[![Brave](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/brave_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
33-
[![Vivaldi](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/vivaldi_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
3433
[![Opera](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/opera_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
3534
[![Chromium](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/chromium_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
35+
[![Yandex](https://raw.githubusercontent.com/smashedr/logo-icons/master/browsers/yandex_48.png)](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp)
3636

3737
All **Chromium** Based Browsers can install the extension from the
3838
[Chrome Web Store](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp).
3939

4040
Mobile browser support available for
41-
[Firefox](https://addons.mozilla.org/addon/link-extractor).
41+
[Firefox](https://addons.mozilla.org/addon/link-extractor) and
42+
[Yandex](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp).
4243

4344
# Features
4445

manifest-firefox.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"gecko": {
88
99
"strict_min_version": "112.0"
10+
},
11+
"gecko_android ": {
12+
"strict_min_version": "120.0"
1013
}
1114
}
1215
}

0 commit comments

Comments
 (0)