Skip to content

Commit

Permalink
completed the github application
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman1905 committed Oct 28, 2024
1 parent 8028b8d commit 5a57d1e
Show file tree
Hide file tree
Showing 9 changed files with 815 additions and 78 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Automate Pipeline
name: CI/CD Pipeline

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -9,16 +11,8 @@ jobs:
runs-on: ubuntu-latest

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

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

- name: Install dependencies
run: npm install
- name: Checkout Code
uses: actions/checkout@v2

- name: Run tests
run: npm test
- name: Display Message
run: echo "CI/CD Pipeline is triggered successfully!"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# automate-github-actions-using-rest-api
This is a sample node.js project for which github actions cicd workflow file is automated using the github rest apis


- `server.js`: This file will serve an HTML page and include an endpoint to trigger the GitHub Actions workflow.
46 changes: 0 additions & 46 deletions automate.js

This file was deleted.

2 changes: 0 additions & 2 deletions index.js

This file was deleted.

Loading

0 comments on commit 5a57d1e

Please sign in to comment.