Skip to content

Reviewing gitrey's code changes πŸš€ #96

Reviewing gitrey's code changes πŸš€

Reviewing gitrey's code changes πŸš€ #96

Workflow file for this run

# AI enabled code reviews using devai
# - Requires GCP service account stored in GOOGLE_API_CREDENTIALS secret
name: GenAI For Developers
run-name: Reviewing ${{ github.actor }}'s code changes πŸš€
on: [push]
env:
LOCATION: us-central1
PROJECT_ID: genai-cicd
jobs:
DevAI-Reviews:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11.7'
# - run: pip install google-cloud-aiplatform
# - run: pip install -i https://test.pypi.org/simple/ devai
# - run: apt-get update && apt-get install -y git
# - run: python --version ; pip --version # For debugging
- run: pip install virtualenv
- run: virtualenv venv
- run: source venv/bin/activate
- run: cd devai-cli/src
- run: pip install -r requirements.txt
- run: pip install --editable .
# - run: cd ../..
- name: Authorize. with GCP
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_API_CREDENTIALS }}'
project_id: genai-cicd
- name: Test Coverage Review
run: echo '## Code Review Results πŸš€' >> $GITHUB_STEP_SUMMARY
- run: echo "$(devai review testcoverage -c ${{ github.workspace }}/sample-app/src)" >> $GITHUB_STEP_SUMMARY
shell: bash
- name: Code Review
run: echo '## Code Review Results πŸš€' >> $GITHUB_STEP_SUMMARY
- run: echo "$(devai review code -c ${{ github.workspace }}/sample-app/src/main/java/anthos/samples/bankofanthos/balancereader)" >> $GITHUB_STEP_SUMMARY
shell: bash
- name: Performance Review
run: echo '## Performance Review Results πŸš€' >> $GITHUB_STEP_SUMMARY
- run: echo "$(devai review performance -c ${{ github.workspace }}/sample-app/src/main/java/anthos/samples/bankofanthos/balancereader)" >> $GITHUB_STEP_SUMMARY
shell: bash
- name: Security Review
run: echo '## Security Review Results πŸš€' >> $GITHUB_STEP_SUMMARY
- run: echo "$(devai review security -c ${{ github.workspace }}/sample-app/src/main/java/anthos/samples/bankofanthos/balancereader)" >> $GITHUB_STEP_SUMMARY
shell: bash
- name: Blockers Review
run: echo '## Security Review Results πŸš€' >> $GITHUB_STEP_SUMMARY
- run: echo "$(devai review blockers -c ${{ github.workspace }}/sample-app/pom.xml)" >> $GITHUB_STEP_SUMMARY
shell: bash