Skip to content

Feature/demos optimierung #479

Feature/demos optimierung

Feature/demos optimierung #479

name: formatting-check
on:
push:
branches:
- "main"
pull_request:
jobs:
check_formatting:
runs-on: ubuntu-latest
strategy:
matrix:
node-versions: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Node cache
id: yarn-cache
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- id: files
uses: jitterbit/get-changed-files@v1
with:
format: csv
- name: Run scoped actions
uses: DukeManh/scoped-actions@v1
with:
files: ${{ steps.files.outputs.added_modified}}
eslintTarget: "**/*.{jsx,tsx,ts,js}"
s0: "yarn run eslint"
s1: "yarn run prettier --check"