Skip to content

Merge Prettier & Lint in one GitHub Action #5

Merge Prettier & Lint in one GitHub Action

Merge Prettier & Lint in one GitHub Action #5

Workflow file for this run

name: Run Tests
on:
push:
branches: [main]
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm exec web-ext lint
- name: Run code formatting check
run: pnpm exec prettier --check .