Skip to content

Commit 49e9b7a

Browse files
committed
first commit
0 parents  commit 49e9b7a

20 files changed

Lines changed: 1210 additions & 0 deletions

.github/workflows/ai-pipeline.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: AI-Accelerated Pipeline
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
jobs:
15+
build-and-analyze:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set up JDK 21
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: '21'
28+
distribution: 'microsoft'
29+
30+
- name: Build with Maven
31+
run: mvn clean verify 2>&1 | tee build-output.txt
32+
33+
- name: Set up Node.js
34+
uses: actions/setup-node@v4
35+
36+
- name: Install Copilot CLI
37+
run: npm install -g @github/copilot
38+
39+
- name: AI Build Analysis
40+
env:
41+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_PAT }}
42+
run: |
43+
copilot -p "Review the build output in build-output.txt. Summarize: \
44+
(1) whether the build passed or failed, \
45+
(2) any test failures with root cause analysis, \
46+
(3) any deprecation warnings, \
47+
(4) dependency issues. \
48+
Write a concise report to build-report.md" \
49+
--allow-tool='shell(cat:*)' \
50+
--allow-tool=write \
51+
--no-ask-user
52+
cat build-report.md >> "$GITHUB_STEP_SUMMARY"
53+
54+
docker-build:
55+
needs: build-and-analyze
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v4
61+
62+
- name: Set up JDK 21
63+
uses: actions/setup-java@v4
64+
with:
65+
java-version: '21'
66+
distribution: 'microsoft'
67+
68+
- name: Build JAR
69+
run: mvn clean package -DskipTests
70+
71+
- name: Build Docker image
72+
run: docker build -t order-service:${{ github.sha }} .

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**/target/
5+
!**/src/test/**/target/
6+
7+
### STS ###
8+
.apt_generated
9+
.classpath
10+
.factorypath
11+
.project
12+
.settings
13+
.springBeans
14+
.sts4-cache
15+
16+
### IntelliJ IDEA ###
17+
.idea
18+
*.iws
19+
*.iml
20+
*.ipr
21+
22+
### NetBeans ###
23+
/nbproject/private/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
28+
build/
29+
!**/src/main/**/build/
30+
!**/src/test/**/build/
31+
32+
### VS Code ###
33+
.vscode/*
34+
!.vscode/settings.json
35+
!.vscode/tasks.json
36+
!.vscode/launch.json
37+
!.vscode/extensions.json
38+
39+
### Mac ###
40+
.DS_Store
41+
42+
### Build output ###
43+
build-output.txt
44+
build-report.md

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"snyk.advanced.autoSelectOrganization": true
3+
}

0 commit comments

Comments
 (0)