Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/task-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI Pipeline

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm ci
working-directory: task-1

- name: Run Linter
run: npm run lint
working-directory: task-1

- name: Run Tests
run: npm test -- --watchAll=false
working-directory: task-1

- name: Build project
run: npm run build
working-directory: task-1

- name: Zip build folder
run: zip -r dist.zip dist
working-directory: task-1

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: task-1/dist.zip
86 changes: 20 additions & 66 deletions task-1/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion task-1/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {

export function SearchBar({ onSearch, loading }: Props) {
const [value, setValue] = useState("");
const unusedConstMaybeDeleteMe = "Search";
//const unusedConstMaybeDeleteMe = "Search";

const handleSubmit = (e: FormEvent) => {
e.preventDefault();
Expand Down