test: a try to add linters to E2E tests #308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codium AI | |
on: | |
pull_request: | |
types: [opened, reopened, ready_for_review] | |
paths-ignore: | |
- '.github/workflows/deploy.yml' | |
- '.github/workflows/docs-release.yml' | |
- '.github/workflows/outdated.yml' | |
- '.github/workflows/comment-tag-report.yml' | |
- '.github/workflows/pr-agent.yml' | |
- '.github/CODEOWNERS' | |
- 'config/**' | |
- 'README.md' | |
- 'LICENSE' | |
- 'CONTRIBUTING.md' | |
- 'utils/slack-notifiers/**' | |
issue_comment: | |
workflow_dispatch: | |
env: | |
EXTRA_INSTRUCTIONS: | | |
Check if background operations are properly logged and monitored. | |
Check if the code uses spawn_named instead of tokio::spawn. | |
Check if only async tasks are running inside tokio, we decided that blocking tasks | |
should be run in a separate thread. | |
jobs: | |
pr_agent_job: | |
if: ${{ github.event.sender.type != 'Bot' }} | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
contents: write | |
name: PR Agent | |
steps: | |
- name: Review | |
id: pr_agent | |
uses: Codium-ai/pr-agent@main | |
env: | |
OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
github_action_config.auto_review: "true" | |
github_action_config.auto_improve: "true" | |
github_action_config.auto_describe: "false" | |
pr_description.publish_labels: "false" | |
github_action_config.enable_output: "false" | |
pr_reviewer.enable_review_labels_effort: "false" | |
pr_reviewer.enable_review_labels_security: "false" | |
pr_reviewer.extra_instructions: "${{ env.EXTRA_INSTRUCTIONS }}" |