build: add Firefox development foundation

This commit is contained in:
golem
2026-07-29 16:13:35 -06:00
parent db4f65f5e6
commit 457d979fb2
9 changed files with 4273 additions and 22 deletions
+36
View File
@@ -0,0 +1,36 @@
name: Firefox Extension CI
on:
pull_request:
push:
branches:
- develop
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint and build
run: npm test
- name: Upload Firefox package
if: ${{ gitea.event_name == 'push' && gitea.ref == 'refs/heads/main' }}
uses: actions/upload-artifact@v4
with:
name: firefox-extension-${{ gitea.sha }}
path: web-ext-artifacts/*.zip
if-no-files-found: error
retention-days: 30