Remove unused GitHub workflow files for Dependabot Automerge and Playwright Tests. These files are no longer needed and can be safely deleted.

Update the Dockerfile in the Copilot directory to use the correct volume mount path. This ensures that the Copilot tool can access the repository files correctly when running in a Docker container.
This commit is contained in:
Simon Larsen 2024-06-28 14:47:27 +01:00
parent 0cadb54117
commit dc0c71b063
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
5 changed files with 47 additions and 49 deletions

View File

@ -1,16 +0,0 @@
name: Misc / Dependabot Automerge
on:
pull_request:
jobs:
merge:
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,31 +0,0 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
BASE_URL: http://localhost
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Run Server in Docker
run: npm run dev
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: cd Playwright && npm install && npx playwright install && npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

View File

@ -0,0 +1,40 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
name: "OneUptime Reliability Copilot"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
# Run every day at midnight UTC
- cron: '0 0 * * *'
jobs:
analyze:
name: OneUptime Reliability Copilot - Analyze Code
runs-on: ubuntu-latest
env:
CI_PIPELINE_ID: ${{github.run_number}}
permissions:
actions: read
# We will never commit to the main/master branch. We will always create a PR.
contents: write
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Run Reliability Copilot in Doker Container
- name: Run Copilot
run: |
docker run --rm -v $(pwd):/repository -w /repository oneuptime/copilot:latest \
-e ONEUPTIME_URL='https://test.oneuptime.com' \
-e ONEUPTIME_REPOSITORY_SECRET_KEY=${{ secrets.COPILOT_ONEUPTIME_REPOSITORY_SECRET_KEY }} \
-e GITHUB_TOKEN=${{ github.token }} \
-e GITHUB_USERNAME='simlarsen' \
-e ONEUPTIME_LLAMA_SERVER_URL='http://57.128.112.160:8547'

View File

@ -5,7 +5,7 @@ Copilot is a tool that helps you improve your codebase automatically.
## Run Copilot with Docker
```bash
docker run -v $(pwd):/app -w /app oneuptime/copilot
docker run -v $(pwd):/repository -w /repository oneuptime/copilot
```

View File

@ -14,7 +14,12 @@ export function getCodeRepositoryBreadcrumbs(
]),
...BuildBreadcrumbLinksByTitles(
PageMap.AI_COPILOT_CODE_REPOSITORY_VIEW_DELETE,
["Project", "Reliability Copilot", "View Git Repository", "Delete Repository"],
[
"Project",
"Reliability Copilot",
"View Git Repository",
"Delete Repository",
],
),
...BuildBreadcrumbLinksByTitles(
PageMap.AI_COPILOT_CODE_REPOSITORY_VIEW_SETTINGS,