From a137687ede0b83323d49e03383a73cd2f9366e4a Mon Sep 17 00:00:00 2001 From: Misha Date: Mon, 6 Jan 2025 19:58:04 +0200 Subject: [PATCH 1/3] added solution --- .github/workflows/test.yml-template | 29 +++++++++++++++++++++++++++++ package-lock.json | 9 +++++---- package.json | 3 +-- 3 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/test.yml-template 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 diff --git a/package-lock.json b/package-lock.json index 61cf4a2b31..4bdc59529c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@mate-academy/backstop-config": "latest", "@mate-academy/bemlint": "latest", "@mate-academy/linthtml-config": "latest", - "@mate-academy/scripts": "^1.8.6", + "@mate-academy/scripts": "^1.9.12", "@mate-academy/stylelint-config": "latest", "backstopjs": "6.3.23", "jest": "^29.7.0", @@ -1211,10 +1211,11 @@ "dev": true }, "node_modules/@mate-academy/scripts": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@mate-academy/scripts/-/scripts-1.8.6.tgz", - "integrity": "sha512-b4om/whj4G9emyi84ORE3FRZzCRwRIesr8tJHXa8EvJdOaAPDpzcJ8A0sFfMsWH9NUOVmOwkBtOXDu5eZZ00Ig==", + "version": "1.9.12", + "resolved": "https://registry.npmjs.org/@mate-academy/scripts/-/scripts-1.9.12.tgz", + "integrity": "sha512-/OcmxMa34lYLFlGx7Ig926W1U1qjrnXbjFJ2TzUcDaLmED+A5se652NcWwGOidXRuMAOYLPU2jNYBEkKyXrFJA==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/rest": "^17.11.2", "@types/get-port": "^4.2.0", diff --git a/package.json b/package.json index ce9d180d76..bbc33bb8b3 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,12 @@ "keywords": [], "author": "Mate Academy", "license": "GPL-3.0", - "dependencies": {}, "devDependencies": { "@linthtml/linthtml": "^0.9.6", "@mate-academy/backstop-config": "latest", "@mate-academy/bemlint": "latest", "@mate-academy/linthtml-config": "latest", - "@mate-academy/scripts": "^1.8.6", + "@mate-academy/scripts": "^1.9.12", "@mate-academy/stylelint-config": "latest", "backstopjs": "6.3.23", "jest": "^29.7.0", From 716325eb2687549e0f693970c12fbf48a963cc66 Mon Sep 17 00:00:00 2001 From: Misha Date: Tue, 7 Jan 2025 16:50:23 +0200 Subject: [PATCH 2/3] added solution --- readme.md | 6 +++--- src/index.html | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index fca5f5e388..d0a7d3a3d2 100644 --- a/readme.md +++ b/readme.md @@ -20,6 +20,6 @@ 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/) +Replace `MishaMed20` with your Github username and copy the links to Pull Request description: +- [DEMO LINK](https://MishaMed20.github.io/layout_hello-world/) +- [TEST REPORT LINK](https://MishaMed20.github.io/layout_hello-world/report/html_report/) diff --git a/src/index.html b/src/index.html index e69de29bb2..955ab44fc5 100644 --- a/src/index.html +++ b/src/index.html @@ -0,0 +1,14 @@ + + + + + + Document + + + Hello, world! + + From 4cec3fb90c189b7615c4bcece38aa5c1b98ef897 Mon Sep 17 00:00:00 2001 From: Misha Date: Tue, 7 Jan 2025 23:24:06 +0200 Subject: [PATCH 3/3] added solution --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index d0a7d3a3d2..f3dd40c594 100644 --- a/readme.md +++ b/readme.md @@ -20,6 +20,6 @@ and use this [VSCode settings](https://mate-academy.github.io/fe-program/tools/v ## Demo Links -Replace `MishaMed20` with your Github username and copy the links to Pull Request description: +Replace `` with your Github username and copy the links to Pull Request description: - [DEMO LINK](https://MishaMed20.github.io/layout_hello-world/) - [TEST REPORT LINK](https://MishaMed20.github.io/layout_hello-world/report/html_report/)