Skip to content

Commit fbe17f1

Browse files
committed
chore: create project skeleton
1 parent 7887318 commit fbe17f1

14 files changed

Lines changed: 713 additions & 7 deletions

File tree

.autover/autover.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"Projects": [
3+
{
4+
"Name": "AWS.AgentCore",
5+
"Paths": [
6+
"src/AWS.AgentCore/AWS.AgentCore.csproj",
7+
"src/AWS.AgentCore.SourceGenerator/AWS.AgentCore.SourceGenerator.csproj"
8+
]
9+
}
10+
],
11+
"UseCommitsForChangelog": false,
12+
"UseSameVersionForAllProjects": false,
13+
"DefaultIncrementType": "Patch",
14+
"ChangeFilesDetermineIncrementType": true
15+
}

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
# Check for updates to GitHub Actions every quarter
8+
interval: "quarterly"
9+
labels:
10+
- "Release Not Needed"
11+
target-branch: "dev"
12+
# Group all github-actions updates into a single PR
13+
groups:
14+
all-github-actions:
15+
applies-to: "version-updates"
16+
patterns:
17+
- "*"

.github/workflows/aws-ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: AWS CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
- dev
9+
- "feature/**"
10+
11+
permissions:
12+
id-token: write
13+
14+
jobs:
15+
run-ci:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Configure Load Balancer Credentials
19+
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 #v4
20+
with:
21+
role-to-assume: ${{ secrets.CI_MAIN_TESTING_ACCOUNT_ROLE_ARN }}
22+
role-duration-seconds: 7200
23+
aws-region: us-west-2
24+
- name: Invoke Load Balancer Lambda
25+
id: lambda
26+
shell: pwsh
27+
run: |
28+
aws lambda invoke response.json --function-name "${{ secrets.CI_TESTING_LOAD_BALANCER_LAMBDA_NAME }}" --cli-binary-format raw-in-base64-out --payload '{"Roles": "${{ secrets.CI_TEST_RUNNER_ACCOUNT_ROLES }}", "ProjectName": "${{ secrets.CI_TESTING_CODE_BUILD_PROJECT_NAME }}", "Branch": "${{ github.sha }}"}'
29+
$roleArn=$(cat ./response.json)
30+
"roleArn=$($roleArn -replace '"', '')" >> $env:GITHUB_OUTPUT
31+
- name: Configure Test Runner Credentials
32+
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 #v4
33+
with:
34+
role-to-assume: ${{ steps.lambda.outputs.roleArn }}
35+
role-duration-seconds: 7200
36+
aws-region: us-west-2
37+
- name: Run Tests on AWS
38+
id: codebuild
39+
uses: aws-actions/aws-codebuild-run-build@v1
40+
with:
41+
project-name: ${{ secrets.CI_TESTING_CODE_BUILD_PROJECT_NAME }}
42+
- name: CodeBuild Link
43+
shell: pwsh
44+
run: |
45+
$buildId = "${{ steps.codebuild.outputs.aws-build-id }}"
46+
echo $buildId
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Change File Included in PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, labeled]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
check-files-in-directory:
12+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Release Not Needed') && !contains(github.event.pull_request.labels.*.name, 'Release PR') }}
13+
name: Change File Included in PR
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout PR code
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
19+
20+
- name: Get List of Changed Files
21+
id: changed-files
22+
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 #v45
23+
24+
- name: Check for Change File(s) in .autover/changes/
25+
run: |
26+
DIRECTORY=".autover/changes/"
27+
if echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -q "$DIRECTORY"; then
28+
echo "✅ One or more change files in '$DIRECTORY' are included in this PR."
29+
else
30+
echo "❌ No change files in '$DIRECTORY' are included in this PR."
31+
echo "Refer to the 'Adding a change file to your contribution branch' section of https://github.com/awslabs/aws-dotnet-ai/blob/main/CONTRIBUTING.md"
32+
exit 1
33+
fi

0 commit comments

Comments
 (0)