Skip to content

Update github-pipelines.yml #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
22 changes: 20 additions & 2 deletions .github/workflows/github-pipelines.yml
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes walkthrough 📝

Enhancement
github-pipelines.yml (+17/-10)
Enhanced GitHub Actions workflow for testing                         

.github/workflows/github-pipelines.yml

  • Renamed workflow to App Test Pipeline.
  • Replaced dependency installation with npm install.
  • Replaced change analysis step with npm test.
  • Added steps to simulate build failures and syntax errors.
  • Documentation
    README.md (+1/-0)
    Updated README with an "ignore" entry                                       

    README.md

    • Added an "ignore" entry to the existing table.

    Original file line number Diff line number Diff line change
    Expand Up @@ -15,14 +15,32 @@ jobs:
    with:
    fetch-depth: 5 # Fetch 5 commits worth of history

    - name: Install Git and Curl
    - name: Set up Git and Curl
    run: |
    sudo apt-get update
    sudo apt-get install -y git curl
    git --version # Verify Git installation
    curl --version # Verify curl installation

    - name: Cache dependencies (Git & Curl)
    uses: actions/cache@v2
    with:
    path: |
    /usr/bin/git
    /usr/bin/curl
    key: ${{ runner.os }}-git-curl-${{ hashFiles('**/*.sh') }}
    restore-keys: |
    ${{ runner.os }}-git-curl-

    - name: Analyze Changes
    run: |
    chmod +x analyze_changes.sh
    chmod +x ./analyze_changes.sh
    ./analyze_changes.sh HEAD~1 HEAD

    - name: Failing Step
    run: |
    echo "This step will fail"
    exit 1 # Force a failure
    - name: Syntax error test
    run: |
    echo "This will cause a syntax error