From a0a9fc91853858333382376a52054f880df5be62 Mon Sep 17 00:00:00 2001 From: Itay Date: Thu, 20 Jul 2023 15:39:56 +0300 Subject: [PATCH] Run lint and build in CI --- .github/workflows/unit-tests.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 9923fff..babc733 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,12 +1,9 @@ -# This is a basic workflow to help you get started with Actions - -name: CI Unit Tests +name: Build # Controls when the workflow will run on: push: - branches: [ "**" ] - + branches: ["**"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -22,14 +19,20 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - + - uses: actions/setup-node@v3 with: - node-version: '18' + node-version: "18" # Runs a single command using the runners shell - name: Install deps run: npm i - - - name: Run unit tests + + - name: Lint + run: npm run lint + + - name: Unit test run: npm run test + + - name: Build + run: npm run build