Lint #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | ||
on: | ||
push: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: 00 12 * * * # 1 hour before Dependabot | ||
permissions: write-all | ||
jobs: | ||
format: | ||
name: Format | ||
if: ${{ always() }} && startsWith(github.ref_name, 'dependabot/') != true | ||
runs-on: ubuntu-20.04 | ||
needs: bump | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Setup Node.JS | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "18.12.1" | ||
cache: npm | ||
- name: Install | ||
run: npm ci | ||
- name: Format | ||
run: npm run format | ||
- name: Commit | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: Format | ||
branch: ${{ github.head_ref }} | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- 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 }} | ||
- name: Setup Node.JS | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "18.12.1" | ||
cache: npm | ||
- name: Install | ||
run: npm ci | ||
- name: Build | ||
run: npm run build |