From 9a563a409679822863134d7ab9d8456ea6a127e2 Mon Sep 17 00:00:00 2001 From: boraykasap Date: Sat, 11 May 2024 17:11:59 +0300 Subject: [PATCH] add frontend github actions --- .github/workflows/frontend.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/frontend.yml diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 00000000..f00df3a2 --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,31 @@ +name: Front-End CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: frontend + + steps: + - uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + cache: 'yarn' + + - name: Install dependencies + run: yarn install —immutable + + - name: Run formatter + run: yarn format + + - name: Run linter + run: yarn lint + + - name: Run tests + run: yarn test \ No newline at end of file