Skip to content

Add workflow

Add workflow #1

Workflow file for this run

name: Prettier Check
on:
push:
branches:
- *

Check failure on line 6 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 6
pull_request:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14 # or another version if you prefer
- name: Install dependencies
run: npm ci
- name: Check formatting with Prettier
run: npx prettier --check src/