From 437712ce6b6e0766ed6a429b93cd4ff22bb6bd51 Mon Sep 17 00:00:00 2001 From: Jess Fairbairn Date: Mon, 17 Feb 2025 23:20:56 +0000 Subject: [PATCH] Adding web-ext step to Actions --- .github/workflows/main.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3458dfd..fc209cc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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 +