Skip to content

Commit

Permalink
Add Test
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr committed Jul 1, 2024
1 parent c7dd8f5 commit 0bbab56
Show file tree
Hide file tree
Showing 12 changed files with 1,361 additions and 242 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "Test"

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:

jobs:
test:
name: "Test"
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ !contains(github.event.head_commit.message, '#notest') }}

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20

- name: "Install"
run: |
npm install
- name: "Lint"
run: |
npm run lint
- name: "Test"
run: |
npm run test
- name: "Push Artifacts"
uses: cssnr/push-artifacts-action@master
with:
path: "tests/screenshots/"
host: ${{ secrets.RSYNC_HOST }}
user: ${{ secrets.RSYNC_USER }}
pass: ${{ secrets.RSYNC_PASS }}
port: ${{ secrets.RSYNC_PORT }}
base: "/static"
webhost: "https://artifacts.hosted-domains.com"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
build/
node_modules/
web-ext-artifacts/
tests/screenshots/
src/manifest.json
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ All **Chromium** Based Browsers can install the extension from the
[Chrome Web Store](https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp).

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

# Features

Expand Down
3 changes: 3 additions & 0 deletions manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"gecko": {
"id": "[email protected]",
"strict_min_version": "112.0"
},
"gecko_android ": {
"strict_min_version": "120.0"
}
}
}
Loading

0 comments on commit 0bbab56

Please sign in to comment.