Skip to content

Rename .github/lint.yml to .github/workflows/lint.yml #108

Rename .github/lint.yml to .github/workflows/lint.yml

Rename .github/lint.yml to .github/workflows/lint.yml #108

Workflow file for this run

name: Lint
on:
push:
pull_request_target:
workflow_dispatch:
permissions: write-all
jobs:
format:
name: Format
if: startsWith(github.ref_name, 'dependabot/') == false
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Setup Node.JS
uses: actions/[email protected]
with:
node-version: "20.6.0"
cache: npm
- name: Install
run: npm ci
- name: Format
run: npm run format
- name: Commit
uses: stefanzweifel/[email protected]
with:
commit_message: Format
analyze:
name: Analyze
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Setup CodeQL
uses: github/codeql-action/[email protected]
with:
languages: javascript
queries: security-and-quality
- name: Analyze
uses: github/codeql-action/analyze@v2
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Setup Node.JS
uses: actions/[email protected]
with:
node-version: "20.6.0"
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build