Skip to content

ci(dep): bump actions/setup-node from 6.4.0 to 7.0.0 #107

ci(dep): bump actions/setup-node from 6.4.0 to 7.0.0

ci(dep): bump actions/setup-node from 6.4.0 to 7.0.0 #107

Workflow file for this run

name: Lint
on: [push]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- name: Install the dependencies
run: npm ci
# eslint
- name: Lint the scripts
run: npm run lint
# web-ext
- name: Display web-ext version
run: npx web-ext --version
# Firefox ignores Chrome's "service_worker" key and web-ext lint warns
# about it: BACKGROUND_SERVICE_WORKER_IGNORED. Strip it before linting
- name: Drop Chrome-only service_worker key for Firefox lint
run: |
jq 'del(.background.service_worker)' manifest.json > manifest.tmp
mv manifest.tmp manifest.json
- name: Lint the webextension
run: npm run lint:webext -- --warnings-as-errors