Skip to content

Speed up GitHub Actions #3

Speed up GitHub Actions

Speed up GitHub Actions #3

Workflow file for this run

name: Prettier
on: [push, pull_request]
jobs:
ESLint:
name: Run Prettier
runs-on: ubuntu-latest
env:
CI: true # Should already be set to TRUE by Github?
TERM: xterm
FORCE_COLOR: 1
NODE_VERSION: 16.14 # Should be moved to repository env variable
NODE_OPTIONS: "--max-old-space-size=4096" # Give eslint more space?
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- run: yarn --immutable
- name: "Check Code Format"
run: yarn prettier:check