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
42 changes: 42 additions & 0 deletions .github/workflows/task-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Task 1 CI Pipeline
on: [push, pull_request]

jobs:
ci-pipeline:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: task-1/package-lock.json

- name: Install dependencies
run: |
cd task-1
npm install

- name: Run Linter
run: |
cd task-1
npm run lint

- name: Run Unit Tests
run: |
chmod +x .hyf/test.sh
./.hyf/test.sh

- name: Build React App
run: |
cd task-1
npm run build

- name: Upload Build Artefact
uses: actions/upload-artifact@v4
with:
name: production-build
path: task-1/dist/
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.

Loading
Loading