mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 12:57:48 +00:00
feat: added test formatting workflow
This commit is contained in:
24
.github/workflows/format.yml
vendored
Normal file
24
.github/workflows/format.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Format
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
branches: ['**']
|
||||
|
||||
jobs:
|
||||
format:
|
||||
name: Format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Format
|
||||
run: npm run format
|
||||
Reference in New Issue
Block a user