Skip to content

ci: add web-ext lint #359

ci: add web-ext lint

ci: add web-ext lint #359

Workflow file for this run

name: Run tests
on:
push:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm ci
- name: Running lint and type check
run: npm run lint && npm run check-types
- name: Run web-ext lint to check Firefox mobile compability
uses: kewisch/action-web-ext@2c96cb8d05464c1dd52b96229a9f33388ba1bfad
with:
cmd: lint
source: src
- name: Create build of test content script
run: npm run build
- name: Run the tests
run: npm run test