From 1c8723f790deef7f14c227f0d8401d6bf85890ea Mon Sep 17 00:00:00 2001 From: jennymar Date: Thu, 18 Jan 2024 16:41:48 -0800 Subject: [PATCH] Added frontend and backend actions --- .github/workflows/backend.yml | 17 +++++++++++++++++ .github/workflows/frontend.yml | 18 ++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/backend.yml create mode 100644 .github/workflows/frontend.yml diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml new file mode 100644 index 00000000..f5ea252c --- /dev/null +++ b/.github/workflows/backend.yml @@ -0,0 +1,17 @@ +name: Backend - lint and style checks + +on: + pull_request: + branches: + - main + +jobs: + name: Backend check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - working-directory: backend + run: | + npm ci + npm run lint-check diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 00000000..d53dd3a0 --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,18 @@ +name: Frontend - lint and style checks + +on: + pull_request: + branches: + - main + +jobs: + name: Frontend check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - working-directory: backend + run: | + npm ci + npm run lint-check + npm run build