Skip to content

Commit

Permalink
Adding web-ext step to Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JessFairbairn committed Feb 18, 2025
1 parent 81a8cea commit 437712c
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Karma Tests

# Run on Pull Request to $branch only
on:
pull_request:
branches: [ $branch ]
push:
branches:
master
on: [push]

# Job Setup
jobs:
Expand All @@ -16,8 +11,24 @@ jobs:
- uses: actions/checkout@v2 #Checkout Repo
- uses: actions/setup-node@v1 #Setup Node
with:
node-version: '12'
node-version: '22'
- name: Run Karma Tests
run: |
npm install
npm run test
npm run test
timeout-minutes: 5
web-ext:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 #Checkout Repo
- name: Install
run: |
npm install
mkdir external
cp node_modules/webextension-polyfill/dist/browser-polyfill.min.js external/browser-polyfill.min.js
- name: Web-ext lint
uses: kewisch/action-web-ext@v1
with:
cmd: lint
channel: listed

0 comments on commit 437712c

Please sign in to comment.