diff --git a/.github/workflows/backend-code-style.yml b/.github/workflows/backend-code-style.yml new file mode 100644 index 00000000..c0338983 --- /dev/null +++ b/.github/workflows/backend-code-style.yml @@ -0,0 +1,22 @@ +name: Check BE source code + +on: [push] + +jobs: + test: + name: Check the source code + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install front-end packages + run: npm ci + working-directory: ./backend + + - name: Prettier + run: npm run format + working-directory: ./backend + + - name: Lint + run: npm run lint + working-directory: ./backend diff --git a/.github/workflows/frontend-code-style.yml b/.github/workflows/frontend-code-style.yml new file mode 100644 index 00000000..58e168b8 --- /dev/null +++ b/.github/workflows/frontend-code-style.yml @@ -0,0 +1,22 @@ +name: Check FE source code + +on: [push] + +jobs: + test: + name: Check the source code + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install front-end packages + run: npm ci + working-directory: ./frontend + + - name: Prettier + run: npm run format + working-directory: ./frontend + + - name: Lint + run: npm run lint + working-directory: ./frontend