From c713e0ed849d85aebd880fd5ac10f9b7bcd9f836 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 5 Sep 2023 16:30:00 +0300 Subject: [PATCH 1/3] Create angular.yml --- .github/workflows/angular.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/angular.yml diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml new file mode 100644 index 000000000..f06b2f111 --- /dev/null +++ b/.github/workflows/angular.yml @@ -0,0 +1,14 @@ +name: Angular CI +on: + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'npm' + - run: | + npm i + npm test \ No newline at end of file From 295e7b94aeff26cc62313f27f64be3589ad5bd0e Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 5 Sep 2023 16:34:28 +0300 Subject: [PATCH 2/3] add working directory --- .github/workflows/angular.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml index f06b2f111..44cb70e80 100644 --- a/.github/workflows/angular.yml +++ b/.github/workflows/angular.yml @@ -9,6 +9,8 @@ jobs: with: node-version: 16 cache: 'npm' - - run: | + - name: Install dependencies and run tests + working-directory: ui + run: | npm i npm test \ No newline at end of file From efa9ab7f80e9e12f07d9ca0f16748b89062c02db Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 5 Sep 2023 16:35:33 +0300 Subject: [PATCH 3/3] fix syntax --- .github/workflows/angular.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml index 44cb70e80..7c09188c4 100644 --- a/.github/workflows/angular.yml +++ b/.github/workflows/angular.yml @@ -3,7 +3,8 @@ on: workflow_dispatch: jobs: build: - runs-on: ubuntu-latest steps: + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: