From b9197e7bac8f2fb60a34ca4a1f52024a53e7a080 Mon Sep 17 00:00:00 2001 From: Sven Sauleau Date: Mon, 16 Jan 2023 12:26:06 +0000 Subject: [PATCH] seperate lint CI job --- .github/workflows/PRs.yml | 40 +++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/.github/workflows/PRs.yml b/.github/workflows/PRs.yml index bd7ce08..494c958 100644 --- a/.github/workflows/PRs.yml +++ b/.github/workflows/PRs.yml @@ -18,16 +18,13 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.13.x + - name: Install run: yarn + - name: Build run: yarn build - - name: Check formatting - run: yarn pretty - - name: Check backend linting - run: yarn lint:backend - - name: Check functions linting - run: yarn lint:functions + - name: Run API tests run: yarn test @@ -40,11 +37,38 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16.13.x + - name: Install run: yarn && yarn --cwd frontend + - name: Initialize local database run: yarn database:create-mock - - name: Check frontend linting - run: yarn lint:frontend + - name: Run UI tests run: yarn test:ui + + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 16.13.x + + - name: Install + run: yarn && yarn --cwd frontend + + - name: Check formatting + run: yarn pretty + + - name: Check backend linting + run: yarn lint:backend + + - name: Check functions linting + run: yarn lint:functions + + - name: Check frontend linting + run: yarn lint:frontend +