Skip to content

Commit

Permalink
feat: Add Prettier check to GitHub Actions workflo
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Oct 31, 2023
1 parent 898c828 commit a1f2247
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# .github/workflows/ci.yml
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: pnpm install

- name: Run eslint
run: npx eslint . --ext .js,.ts

- name: Run tests
run: pnpm run test

- name: Run Prettier
run: npx prettier --write {file_path}

0 comments on commit a1f2247

Please sign in to comment.