From 69cc23a1834811f8476a684acc80a0c23a24ac38 Mon Sep 17 00:00:00 2001 From: Yevhen Loboda Date: Tue, 10 Sep 2024 13:41:58 +0200 Subject: [PATCH 1/2] add solution --- readme.md | 4 ++-- src/index.html | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index fca5f5e388..3ebd8d83de 100644 --- a/readme.md +++ b/readme.md @@ -21,5 +21,5 @@ and use this [VSCode settings](https://mate-academy.github.io/fe-program/tools/v ## Demo Links Replace `` with your Github username and copy the links to Pull Request description: -- [DEMO LINK](https://.github.io/layout_hello-world/) -- [TEST REPORT LINK](https://.github.io/layout_hello-world/report/html_report/) +- [DEMO LINK](https://yevhen-loboda.github.io/layout_hello-world/) +- [TEST REPORT LINK](https://yevhen-loboda.github.io/layout_hello-world/report/html_report/) diff --git a/src/index.html b/src/index.html index e69de29bb2..0eb1ba249c 100644 --- a/src/index.html +++ b/src/index.html @@ -0,0 +1,15 @@ + + + + + + Document + + + Hello, world! + + + From 55ddb3df9afd9b27a8156f316fb6ea8f98f564c1 Mon Sep 17 00:00:00 2001 From: Yevhen Loboda Date: Tue, 10 Sep 2024 17:51:32 +0200 Subject: [PATCH 2/2] add action-artifact v3 --- .github/workflows/test.yml | 6 +++--- .github/workflows/test.yml-template | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/test.yml-template diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b5743ecb4..1f59d9be24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,16 +14,16 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install - run: npm test - name: Upload HTML report(backstop data) if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: report path: backstop_data diff --git a/.github/workflows/test.yml-template b/.github/workflows/test.yml-template new file mode 100644 index 0000000000..8b5743ecb4 --- /dev/null +++ b/.github/workflows/test.yml-template @@ -0,0 +1,29 @@ +name: Test + +on: + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.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: npm install + - run: npm test + - name: Upload HTML report(backstop data) + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: report + path: backstop_data