From 88f2b377eadff2ecdced887f5c032f80382e8938 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Wed, 20 Jan 2021 22:42:32 +0200 Subject: [PATCH 01/16] feat: creating test workflow --- .github/workflows/test.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000000..fdc970519d --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,10 @@ +name: learn-github-actions +on: [push] +jobs: + check-bats-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + - run: npm install -g bats + - run: bats -vg \ No newline at end of file From 8f821a328b79e85bc758c31f4aedaf1eb42caec0 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Wed, 20 Jan 2021 22:45:30 +0200 Subject: [PATCH 02/16] test commit --- src/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.html b/src/index.html index 2188b7092f..4063155b5a 100644 --- a/src/index.html +++ b/src/index.html @@ -10,6 +10,7 @@ + From 86486ce04e238bd927b7700fd14c2c947de16b19 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Wed, 20 Jan 2021 22:49:43 +0200 Subject: [PATCH 03/16] test --- .github/workflows/{test.yaml => test.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{test.yaml => test.yml} (100%) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/test.yaml rename to .github/workflows/test.yml From 17d988f461832f45948c87e3e88dc8b4a301b573 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Wed, 20 Jan 2021 22:57:59 +0200 Subject: [PATCH 04/16] adding tests workflow --- .github/workflows/test.yml | 10 ---------- .github/workflows/tests.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 10 deletions(-) delete mode 100644 .github/workflows/test.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index fdc970519d..0000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: learn-github-actions -on: [push] -jobs: - check-bats-version: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - - run: npm install -g bats - - run: bats -vg \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000000..13bbb2cf49 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,23 @@ +name: Run tests + +on: + push: + branches: [master, dev/*, feat/create-workflow] + pull_request: + branches: [master, dev/*, feat/create-workflow] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: ng test \ No newline at end of file From f8fd871520ec77fbbfaba11a2bb4ba7c785e23d6 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Wed, 20 Jan 2021 22:59:29 +0200 Subject: [PATCH 05/16] test --- src/index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.html b/src/index.html index 4063155b5a..2188b7092f 100644 --- a/src/index.html +++ b/src/index.html @@ -10,7 +10,6 @@ - From fd24081fbe15172e3556f48e25d3e5cba9db188d Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Wed, 20 Jan 2021 23:04:41 +0200 Subject: [PATCH 06/16] change tests workflow --- .github/workflows/tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 13bbb2cf49..9cfd977818 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,9 +2,9 @@ name: Run tests on: push: - branches: [master, dev/*, feat/create-workflow] + branches: [master, develop] pull_request: - branches: [master, dev/*, feat/create-workflow] + branches: [master, develop] jobs: build: @@ -12,11 +12,11 @@ jobs: strategy: matrix: - node-version: [10.x] + node-version: [12.x] steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Run tests uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} From ef922da405b18c2bd796df337f424691ed3c9050 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Thu, 21 Jan 2021 20:38:07 +0200 Subject: [PATCH 07/16] test --- src/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.html b/src/index.html index 2188b7092f..7f6fc69996 100644 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,7 @@ + From c9cc7b58b534fce93d2421716c5b03f1c9ab32d4 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Thu, 21 Jan 2021 20:41:55 +0200 Subject: [PATCH 08/16] changing tests workflow --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9cfd977818..52880efddf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,7 @@ name: Run tests on: push: - branches: [master, develop] + branches: [master, develop, feat/create-workflow] pull_request: branches: [master, develop] From 1d43ef675f6ab74c35be162d27b96784de01b23b Mon Sep 17 00:00:00 2001 From: Lena Vaskiv Date: Thu, 21 Jan 2021 20:58:38 +0200 Subject: [PATCH 09/16] change run test --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 52880efddf..aa71f80255 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,4 +20,4 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: ng test \ No newline at end of file + - run: yarn run test From 1cd440e627ff043b4cd285006e5b1052e2d9fdf4 Mon Sep 17 00:00:00 2001 From: Lena Vaskiv Date: Thu, 21 Jan 2021 22:38:16 +0200 Subject: [PATCH 10/16] Update tests.yml change run for yarn test --- .github/workflows/tests.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aa71f80255..74ad428855 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,8 +16,19 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: install # will run `yarn install` command + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: build # will run `yarn build` command + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: test # will run `yarn test` command + - uses: actions/checkout@v2 - name: Run tests uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: yarn run test + - run: yarn + - run: yarn test From f00bb883685ff471f9a13be291169fc391e8b9da Mon Sep 17 00:00:00 2001 From: Lena Vaskiv Date: Thu, 21 Jan 2021 22:46:10 +0200 Subject: [PATCH 11/16] Update tests.yml changing test on workflow --- .github/workflows/tests.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 74ad428855..cee30a6c56 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,20 +15,12 @@ jobs: node-version: [12.x] steps: + - name: Run tests - uses: actions/checkout@v2 - uses: borales/actions-yarn@v2.0.0 + - uses: actions/setup-node@v1 with: - cmd: install # will run `yarn install` command - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: build # will run `yarn build` command - - uses: borales/actions-yarn@v2.0.0 - with: + node-version: ${{ matrix.node-version }} cmd: test # will run `yarn test` command - - uses: actions/checkout@v2 - - name: Run tests - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: yarn - - run: yarn test + + From 1461a775ad97465e98a67fe6f4981154f5010da9 Mon Sep 17 00:00:00 2001 From: Lena Vaskiv Date: Thu, 21 Jan 2021 22:57:42 +0200 Subject: [PATCH 12/16] Update tests.yml change test workflow with yarn --- .github/workflows/tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cee30a6c56..a790b140a7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,10 +17,12 @@ jobs: steps: - name: Run tests - uses: actions/checkout@v2 - - uses: borales/actions-yarn@v2.0.0 - uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} + node-version: ${{ matrix.node-version }} + + - uses: borales/actions-yarn@v2.0.0 + with: cmd: test # will run `yarn test` command From f57f71552a5a20b68ae0584543b559c75fb98614 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Thu, 21 Jan 2021 23:25:32 +0200 Subject: [PATCH 13/16] change tests workflow --- .github/workflows/tests.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a790b140a7..9658610367 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,14 +15,9 @@ jobs: node-version: [12.x] steps: - - name: Run tests - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - uses: borales/actions-yarn@v2.0.0 + - name: Run tests + uses: actions/setup-node@v1 with: - cmd: test # will run `yarn test` command - - + node-version: ${{ matrix.node-version }} + - run: yarn test \ No newline at end of file From 4190f9bebc1e9be1bcceb98f9fe001b03aad52ee Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Thu, 21 Jan 2021 23:28:59 +0200 Subject: [PATCH 14/16] change tests workflow --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9658610367..cf50bd4c99 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,4 +20,5 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - run: yarn version - run: yarn test \ No newline at end of file From 0de9d31b242309a23d91e1a7d0a425d9ee867167 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Thu, 21 Jan 2021 23:40:01 +0200 Subject: [PATCH 15/16] change tests workflow --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cf50bd4c99..08fe3dda79 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,4 +21,5 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: yarn version + - run: yarn install - run: yarn test \ No newline at end of file From c1ab20ec12a8fd887d693f20bff7b3c5b043a470 Mon Sep 17 00:00:00 2001 From: LenkVskv Date: Mon, 25 Jan 2021 14:14:30 +0200 Subject: [PATCH 16/16] test --- src/app/app.component.spec.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index d9813cd8d4..3661438192 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -26,10 +26,4 @@ describe('AppComponent', () => { expect(app.title).toEqual('out-of-school'); }); - it('should render title', () => { - const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); - const compiled = fixture.nativeElement; - expect(compiled.querySelector('span').textContent).toContain('out-of-school app is running!'); - }); });