From b4fb19ae297389184e06b36d9845bf51914072b3 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 26 Apr 2022 15:26:08 +0900 Subject: [PATCH] Add a frontend job to workflow --- .github/workflows/ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15bd5e59..7592dea9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,11 @@ name: doccano CI on: [push, pull_request] jobs: - build: - + backend: runs-on: ubuntu-latest defaults: run: working-directory: ./backend - steps: - uses: actions/checkout@v2 - name: Set up Python 3.8 @@ -40,3 +38,20 @@ jobs: - name: Run tests run: | poetry run task test + + frontend: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./frontend + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + - name: Install Yarn + run: npm install -g yarn + - name: Install npm modules + run: yarn install + - name: Lint + run: yarn lint