diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..74e3862 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,26 @@ +name: Format + +on: + pull_request: + branches: + - main + +jobs: + format: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' # Use the Node.js version your project requires + + - name: Install dependencies + run: npm install + + - name: Run Prettier to check formatting + run: npm run prettier -- --check + continue-on-error: false # Fail the workflow if formatting issues are found diff --git a/.github/workflows/lint-and-format.yml b/.github/workflows/lint.yml similarity index 100% rename from .github/workflows/lint-and-format.yml rename to .github/workflows/lint.yml