diff --git a/.github/workflows/run-eslint-check.yaml b/.github/workflows/run-eslint-check.yaml new file mode 100644 index 0000000..ebd817a --- /dev/null +++ b/.github/workflows/run-eslint-check.yaml @@ -0,0 +1,18 @@ +name: Run ESLint check + +on: + workflow_call: + workflow_dispatch: + +jobs: + run-eslint-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up project + uses: ./.github/actions/setup-project + + - name: Run ESLint check + run: yarn eslint . diff --git a/.github/workflows/run-prettier-check.yaml b/.github/workflows/run-prettier-check.yaml new file mode 100644 index 0000000..4cff6d9 --- /dev/null +++ b/.github/workflows/run-prettier-check.yaml @@ -0,0 +1,18 @@ +name: Run Prettier check + +on: + workflow_call: + workflow_dispatch: + +jobs: + run-prettier-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up project + uses: ./.github/actions/setup-project + + - name: Run Prettier check + run: yarn prettier --check .