Skip to content

🎥 Make videos programmatically with React

new formatting workflow

Jonny Burgerce91c287bc63
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index f078841929..84f5cb459e 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -104,6 +104,39 @@ jobs:
timeout-minutes: 5
run: |
cd packages/it-tests && pnpm run testssr
+ lint:
+ runs-on: ubuntu-latest
+ name: Linting + Formatting
+ steps:
+ - uses: actions/checkout@main
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 16
+ - run: |
+ corepack enable
+ - name: Get pnpm store directory
+ id: pnpm-cache
+ shell: bash
+ run: |
+ echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
+ - uses: actions/cache@v3
+ name: Setup pnpm cache
+ with:
+ path: ${{ steps.pnpm-cache.outputs.PNPM_STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-store-
+ - name: Cache node_modules/.cache
+ uses: actions/[email protected]
+ with:
+ path: node_modules/.cache
+ key: deps-${{ runner.os }}-node-v3
+ - name: Install
+ run: pnpm install --frozen-lockfile
+ - name: Perform stylecheck
+ timeout-minutes: 5
+ run: |
+ pnpm run stylecheck
build:
name: Build Node ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}