diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..08f771b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +name: CI Pipeline + +on: + push: + branches: [main] + pull_request: + +jobs: + build: + name: Build Job + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Print Hello + run: echo "Hello from GitHub Actions" + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: yarn install + + - name: Build project + run: yarn build + + test: + name: Run Tests + runs-on: ubuntu-latest + needs: build + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: yarn install + + - name: Run tests + run: yarn test \ No newline at end of file diff --git a/Task4.html b/Task4.html index 28fd409..7008a64 100644 --- a/Task4.html +++ b/Task4.html @@ -1,2 +1,2 @@ Hello World4 -kp \ No newline at end of file +kp-feature4 \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..04c813b --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "kart-app", + "version": "1.0.0", + "description": "Sample app for GitHub Actions CI with SigNoz tracing", + "scripts": { + "build": "echo '🛠️ Build successful!'", + "test": "echo '✅ All tests passed!' && exit 0" + }, + "dependencies": {}, + "devDependencies": {} + } \ No newline at end of file