Skip to content

Merge pull request #286 from matrix-org/dg/remove-docker-push-for-prs #487

Merge pull request #286 from matrix-org/dg/remove-docker-push-for-prs

Merge pull request #286 from matrix-org/dg/remove-docker-push-for-prs #487

Workflow file for this run

name: Linting
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run eslint -- "**/*.js"
lint-prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Prettier
run: npm run prettier -- --check "**/*.{js,css,md}"