From 2a2906ef225b3dc9c7fcea7b82657cdf183efa5a Mon Sep 17 00:00:00 2001 From: Tis5813 Date: Wed, 8 Apr 2026 21:54:45 +0200 Subject: [PATCH 1/2] fixed linter error --- task-1/package-lock.json | 30 ----------------------------- task-1/src/components/SearchBar.tsx | 1 - 2 files changed, 31 deletions(-) diff --git a/task-1/package-lock.json b/task-1/package-lock.json index a0131d8..7fa0c7b 100644 --- a/task-1/package-lock.json +++ b/task-1/package-lock.json @@ -927,9 +927,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -947,9 +944,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -967,9 +961,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -987,9 +978,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1007,9 +995,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1027,9 +1012,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3004,9 +2986,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3028,9 +3007,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3052,9 +3028,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3076,9 +3049,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ diff --git a/task-1/src/components/SearchBar.tsx b/task-1/src/components/SearchBar.tsx index 6574666..6579f9b 100644 --- a/task-1/src/components/SearchBar.tsx +++ b/task-1/src/components/SearchBar.tsx @@ -7,7 +7,6 @@ interface Props { export function SearchBar({ onSearch, loading }: Props) { const [value, setValue] = useState(""); - const unusedConstMaybeDeleteMe = "Search"; const handleSubmit = (e: FormEvent) => { e.preventDefault(); From 40f88f0b77fc1ef003e9577d60b5c24d9f86dafc Mon Sep 17 00:00:00 2001 From: Tis5813 Date: Wed, 8 Apr 2026 22:26:44 +0200 Subject: [PATCH 2/2] created yaml --- .github/workflows/task-1.yaml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/task-1.yaml diff --git a/.github/workflows/task-1.yaml b/.github/workflows/task-1.yaml new file mode 100644 index 0000000..7d8a961 --- /dev/null +++ b/.github/workflows/task-1.yaml @@ -0,0 +1,45 @@ +name: Task 1 CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + ci: + runs-on: ubuntu-latest + + defaults: + run: + working-directory: task-1 + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: 24 + + - name: Install dependencies + run: npm ci + + - name: Run linter + run: npm run lint + + - name: Run tests + run: npm test + + - name: Build project + run: npm run build + + - name: Zip build folder + run: zip -r build.zip dist + + - name: Upload artifact + uses: actions/upload-artifact@v6 + with: + name: build-artifact + path: task-1/build.zip \ No newline at end of file