Code formatting setup, code actions and guidleines #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format Check | |
on: | |
push: | |
branches: | |
- main | |
- format_ca | |
pull_request: | |
branches: | |
- main | |
- format_ca | |
jobs: | |
prettier-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js and pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Format check on react-todo | |
run: cd packages/react-todo && pnpm install && pnpm run check | |
- name: Format check on svelte-todo | |
run: cd packages/svelte-todo && pnpm install && pnpm run check | |
- name: Format check on vanilla-todo | |
run: cd packages/vanilla-todo && pnpm install && pnpm run check | |
- name: Format check on vue-todo | |
run: cd packages/vue-todo && pnpm install && pnpm run check |