Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
pull_request:
branches:
- master
types: [opened, synchronize, reopened]

permissions:
contents: write

jobs:
run-ci:
runs-on: ubuntu-latest
steps:
# Checkout Action: https://github.com/actions/checkout
- name: Checkout repository
uses: actions/checkout@v7

# Setup Node Action: https://github.com/actions/setup-node
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 16.x
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run Prettier
run: npm run prettier

# Auto Commit Action Repo: https://github.com/stefanzweifel/git-auto-commit-action
- name: Commit and push formatting changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "style: auto-format code with prettier"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"

- name: Run ESLint
run: npm run lint