From 322054ef0d02f3dda6630fcec144facfa724bf66 Mon Sep 17 00:00:00 2001 From: itayox <111698101+itayox@users.noreply.github.com> Date: Thu, 20 Jul 2023 15:18:02 +0300 Subject: [PATCH 1/2] Run unit tests in CI --- .github/workflows/blank.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..9923fff --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,35 @@ +# This is a basic workflow to help you get started with Actions + +name: CI Unit Tests + +# Controls when the workflow will run +on: + push: + branches: [ "**" ] + + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + 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' + + # Runs a single command using the runners shell + - name: Install deps + run: npm i + + - name: Run unit tests + run: npm run test From 554957c17a3531eacefc66daf24abc6ac2575722 Mon Sep 17 00:00:00 2001 From: Itay Date: Thu, 20 Jul 2023 15:28:05 +0300 Subject: [PATCH 2/2] Change workflow file name --- .github/workflows/{blank.yml => unit-tests.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{blank.yml => unit-tests.yml} (100%) diff --git a/.github/workflows/blank.yml b/.github/workflows/unit-tests.yml similarity index 100% rename from .github/workflows/blank.yml rename to .github/workflows/unit-tests.yml