mirror of
https://git.zavage.net/Zavage-Software/search-with-chatgpt-powered-by-openai-extension.git
synced 2026-08-10 21:50:29 -06:00
37 lines
791 B
YAML
37 lines
791 B
YAML
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
|