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
19 changes: 6 additions & 13 deletions .github/workflows/ripple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,29 @@ name: Ripple Enterprise Gate

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main, master]

permissions:
contents: read
pull-requests: read
checks: write

jobs:
ripple-gate:
ripple:
name: Ripple authorization gate
runs-on: ubuntu-latest
steps:
- name: Checkout PR Code
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Ripple CI gate
run: npx -y @getripple/cli@1.0.12 ci --base origin/\${{ github.base_ref || 'main' }} --github-annotations --sha \${{ github.event.pull_request.head.sha || github.sha }}
env:
RIPPLE_API_KEY: ${{ secrets.RIPPLE_API_KEY }}
RIPPLE_CLOUD_URL: ${{ secrets.RIPPLE_CLOUD_URL }}
run: |
# Install the local packages we copied into the repo
npm install ./getripple-core-*.tgz
npm install ./getripple-cli-*.tgz

# Run the gate using the now-installed binary
./node_modules/.bin/ripple ci --base origin/${{ github.base_ref || 'main' }} --github-annotations --sha ${{ github.event.pull_request.head.sha || github.sha }}
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
export function funcA(input: string): string {
// This is the function we plan to change.
return `Processed A: ${input}`;
//right change, love, new
}

export function funcB(input: string): string {
// This function should NOT be changed.
return `Processed B: ${input}`;
// outside change
}
Loading