Skip to content
Merged
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
38 changes: 38 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Dependency updates, proposed rather than applied. Everything npm installs
# here is a development tool (neither the extension nor the npm package ships
# any of it), and the actions run in CI. Minor and patch updates come once a
# week in one pull request per ecosystem; security updates as soon as they
# are published.
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
day: monday
time: '06:00'
timezone: Europe/Sofia
open-pull-requests-limit: 5
groups:
npm:
applies-to: version-updates
update-types: [minor, patch]
npm-security:
applies-to: security-updates
patterns: ['*']

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: '06:00'
timezone: Europe/Sofia
open-pull-requests-limit: 5
groups:
actions:
applies-to: version-updates
update-types: [minor, patch]
actions-security:
applies-to: security-updates
patterns: ['*']
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

# Every push to main and every pull request: the unit and packaging tests,
# the Firefox build checked by Mozilla's own add-on linter (the check
# addons.mozilla.org runs on upload) and the audit of the development tools.
on:
push:
branches: [main]
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
# Actions are pinned to commit hashes, so a moved tag cannot change what runs here.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
cache: npm
- run: npm ci
# The extension and the npm package have no dependencies; everything npm
# installs here is a build tool. deepmerge (through addons-linter) has a
# low advisory with no fixed release, so the gate is moderate and above.
- name: npm audit
run: npm audit --audit-level=moderate
- name: Tests
run: npm test
# Builds dist/chrome, dist/firefox and the npm tarball, then lints the
# Firefox build exactly as it would be uploaded.
- name: Build and add-on linter
run: npm run lint
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ npm test # unit and packaging tests (node --test)
node tools/e2e-chrome.mjs # real Chrome: cleaning, counter, popup pause (PN_PLAYWRIGHT=…/playwright-core)
node tools/e2e-firefox.mjs # real Firefox via web-ext (WEB_EXT=…/web-ext)
npm run build # dist/chrome, dist/firefox, both zips and the npm tarball
npm run lint # the build, then Mozilla's addons-linter on dist/firefox
npm run images # store images at exact sizes into listing/
```

No dependencies. Nothing is minified or generated, so AMO needs no separate
The extension and the npm package have no dependencies; addons-linter is a
development tool only. Nothing is minified or generated, so AMO needs no separate
source package.

## Privacy
Expand Down
Loading
Loading