diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..7f059a7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,45 @@ +name: CI Pipeline + +# Trigger this workflow on pushes to the main branch or pull requests +on: + push: + branches: + - main + pull_request: + branches: + - main + types: + - opened + - edited + - synchronize + + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + # Check out the repository code + - name: Checkout code + uses: actions/checkout@v3 + + # Set up a specific programming environment (example: Node.js, Java, Python, etc.) + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + + # Install dependencies + - name: Install dependencies + run: npm install + + - name: Authenticate GitHub CLI + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login -- + + # Update the PR description + - name: Update PR Description + run: | + gh pr edit ${{ github.event.pull_request.number }} --body "### Updated PR Description\n\nThis description was updated using GitHub Actions.\n\n- Item 1\n- Item 2" diff --git a/package.json b/package.json new file mode 100644 index 0000000..a940dea --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "dependencies": { + "diff2html": "^3.4.48", + "diff2html-cli": "^5.2.15", + "mkdirp": "^3.0.1" + } +}