Skip to content

Merge pull request #430 from m-h-c-t/fi-stage-rework #709

Merge pull request #430 from m-h-c-t/fi-stage-rework

Merge pull request #430 from m-h-c-t/fi-stage-rework #709

Workflow file for this run

name: CI Lint, Build & Test
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.txt'
pull_request:
paths-ignore:
- '**.md'
- '**.txt'
jobs:
web-ext-lint:
name: "Web Ext Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "web-ext lint"
uses: kewisch/action-web-ext@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cmd: lint
source: src
channel: listed
verbose: true
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: npm ci
- name: Lint
run: npm run lint
test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Run tests
env:
CI: true
run: npm test