mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
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:
parent
0cadb54117
commit
dc0c71b063
@ -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 }}
|
31
.github/workflows/playwright.yml.skip
vendored
31
.github/workflows/playwright.yml.skip
vendored
@ -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
|
40
.github/workflows/reliability-copilot.yml
vendored
Normal file
40
.github/workflows/reliability-copilot.yml
vendored
Normal 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'
|
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user