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
3 changes: 1 addition & 2 deletions task-1/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ interface Props {

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


const handleSubmit = (e: FormEvent) => {
e.preventDefault();
if (value.trim()) onSearch(value);
Expand Down
41 changes: 41 additions & 0 deletions task-1/task-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: task-1 pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
ci-pipeline:
runs-on: ubuntu-latest
defaults:
run:
working-directory: task-1
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Test
run: npm test

- name: Build
run: npm run build

- name: Compress build artifact
run: zip -r build-artifact.zip dist/

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: dist/