Skip to content

Commit 63fb1e0

Browse files
authored
Merge pull request #3 from monadierickx/week13
Initial commit with work as of week 13
2 parents 6fbcb1e + f8223ee commit 63fb1e0

File tree

125 files changed

+10390
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+10390
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build And Test on EC2
2+
3+
on:
4+
push:
5+
branches: ["main", "week12"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
container: swift:6.0.3-amazonlinux2
13+
14+
steps:
15+
# GitHub checkout action has a dep on NodeJS 20 which is not running on Amazonlinux2
16+
# workaround is to manually checkout the repository
17+
# https://github.com/actions/checkout/issues/1487
18+
- name: Manually Clone repository
19+
run: |
20+
git clone https://github.com/${{ github.repository }} .
21+
- name: Build
22+
working-directory: backend
23+
run: swift build
24+
25+
test:
26+
runs-on: ubuntu-latest
27+
container: swift:6.0.3-amazonlinux2
28+
29+
steps:
30+
# GitHub checkout action has a dep on NodeJS 20 which is not running on Amazonlinux2
31+
# workaround is to manually checkout the repository
32+
# https://github.com/actions/checkout/issues/1487
33+
- name: Manually Clone repository
34+
run: |
35+
git clone https://github.com/${{ github.repository }} .
36+
- name: Run tests
37+
working-directory: backend
38+
run: swift test
39+
40+
soundness:
41+
name: Soundness
42+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
43+
with:
44+
license_header_check_enabled: true
45+
license_header_check_project_name: "Swift Foundation Models Playground"
46+
shell_check_enabled: false
47+
python_lint_check_enabled: false
48+
api_breakage_check_enabled: false
49+
# api_breakage_check_container_image: "swift:6.0-noble"
50+
docs_check_container_image: "swift:6.0-noble"
51+
format_check_container_image: "swift:6.0-noble"
52+
yamllint_check_enabled: true

.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
notes.md
2+
.DS_Store
3+
*.build
4+
*.index-build
5+
/.xcodeproj
6+
*.pem
7+
.podspecs
8+
.swiftpm
9+
.swift-version
10+
xcuserdata
11+
Package.resolved
12+
.serverless
13+
.vscode
14+
15+
# backend
16+
backend/.DS_Store
17+
backend/.build
18+
backend/.swiftpm
19+
backend/.devContainer
20+
backend/Packages
21+
backend/*.xcodeproj
22+
backend/xcuserdata/
23+
backend/.vscode/*
24+
backend/!/.vscode/hummingbird.code-snippets
25+
backend/.env.*
26+
backend/.env
27+
backend/img/generated_images
28+
backend/.vscode
29+
30+
# frontend
31+
frontend/node_modules
32+
frontend/.pnp
33+
frontend/.pnp.js
34+
frontend/.yarn/install-state.gz
35+
36+
frontend/coverage
37+
38+
frontend/.next/
39+
frontend/out/
40+
41+
frontend/build
42+
43+
frontend/.DS_Store
44+
frontend/*.pem
45+
46+
frontend/npm-debug.log*
47+
frontend/yarn-debug.log*
48+
frontend/yarn-error.log*
49+
50+
frontend/.env*.local
51+
52+
frontend/.vercel
53+
54+
frontend/*.tsbuildinfo
55+
frontend/next-env.d.ts

.license_header_template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@@===----------------------------------------------------------------------===@@
2+
@@
3+
@@ This source file is part of the Swift Foundation Models Playground open source project
4+
@@
5+
@@ Copyright (c) YEARS Amazon.com, Inc. or its affiliates
6+
@@ and the Swift Foundation Models Playground project authors
7+
@@ Licensed under Apache License v2.0
8+
@@
9+
@@ See LICENSE.txt for license information
10+
@@ See CONTRIBUTORS.txt for the list of Swift Foundation Models Playground project authors
11+
@@
12+
@@ SPDX-License-Identifier: Apache-2.0
13+
@@
14+
@@===----------------------------------------------------------------------===@@

.licenseignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.gitignore
2+
.swiftformatignore
3+
.spi.yml
4+
.swift-format
5+
.github/*
6+
*.md
7+
**/*.md
8+
CONTRIBUTORS.txt
9+
LICENSE.txt
10+
NOTICE.txt
11+
Package.swift
12+
Package@swift-*.swift
13+
Package.resolved
14+
**/*.docc/*
15+
**/.gitignore
16+
**/Package.swift
17+
**/Package.resolved
18+
**/docker-compose*.yaml
19+
**/docker/*
20+
**/.dockerignore
21+
**/Dockerfile
22+
**/Makefile
23+
**/*.html
24+
**/*-template.yml
25+
**/*.xcworkspace/*
26+
**/*.xcodeproj/*
27+
**/*.xcassets/*
28+
**/*.appiconset/*
29+
.mailmap
30+
.swiftformat
31+
*.yaml
32+
*.yml
33+
*.json
34+
*.gif
35+
frontend/*
36+
.DS_Store
37+
backend/.vscode/hummingbird.code-snippets
38+
backend/img/image.png
39+
LICENSE
40+
.licenseignore

.vscode/launch.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"configurations": [
3+
{
4+
"type": "lldb",
5+
"request": "launch",
6+
"args": [],
7+
"cwd": "${workspaceFolder:swift-bedrock-playground}/backend",
8+
"name": "Debug backend (backend)",
9+
"program": "${workspaceFolder:swift-bedrock-playground}/backend/.build/debug/backend",
10+
"preLaunchTask": "swift: Build Debug backend (backend)"
11+
},
12+
{
13+
"type": "lldb",
14+
"request": "launch",
15+
"args": [],
16+
"cwd": "${workspaceFolder:swift-bedrock-playground}/backend",
17+
"name": "Release backend (backend)",
18+
"program": "${workspaceFolder:swift-bedrock-playground}/backend/.build/release/backend",
19+
"preLaunchTask": "swift: Build Release backend (backend)"
20+
},
21+
{
22+
"type": "lldb",
23+
"request": "launch",
24+
"args": [],
25+
"cwd": "${workspaceFolder:swift-bedrock-playground}/template",
26+
"name": "Debug {{HB_EXECUTABLE_NAME}} (template)",
27+
"program": "${workspaceFolder:swift-bedrock-playground}/template/.build/debug/{{HB_EXECUTABLE_NAME}}",
28+
"preLaunchTask": "swift: Build Debug {{HB_EXECUTABLE_NAME}} (template)"
29+
},
30+
{
31+
"type": "lldb",
32+
"request": "launch",
33+
"args": [],
34+
"cwd": "${workspaceFolder:swift-bedrock-playground}/template",
35+
"name": "Release {{HB_EXECUTABLE_NAME}} (template)",
36+
"program": "${workspaceFolder:swift-bedrock-playground}/template/.build/release/{{HB_EXECUTABLE_NAME}}",
37+
"preLaunchTask": "swift: Build Release {{HB_EXECUTABLE_NAME}} (template)"
38+
},
39+
{
40+
"type": "lldb",
41+
"request": "launch",
42+
"args": [],
43+
"cwd": "${workspaceFolder:swift-bedrock-playground}/backend",
44+
"name": "Debug App (backend)",
45+
"program": "${workspaceFolder:swift-bedrock-playground}/backend/.build/debug/App",
46+
"preLaunchTask": "swift: Build Debug App (backend)"
47+
},
48+
{
49+
"type": "lldb",
50+
"request": "launch",
51+
"args": [],
52+
"cwd": "${workspaceFolder:swift-bedrock-playground}/backend",
53+
"name": "Release App (backend)",
54+
"program": "${workspaceFolder:swift-bedrock-playground}/backend/.build/release/App",
55+
"preLaunchTask": "swift: Build Release App (backend)"
56+
},
57+
{
58+
"type": "lldb",
59+
"request": "launch",
60+
"args": [],
61+
"cwd": "${workspaceFolder:swift-bedrock-playground}/backend",
62+
"name": "Debug SwiftBedrockService (backend)",
63+
"program": "${workspaceFolder:swift-bedrock-playground}/backend/.build/debug/SwiftBedrockService",
64+
"preLaunchTask": "swift: Build Debug SwiftBedrockService (backend)"
65+
},
66+
{
67+
"type": "lldb",
68+
"request": "launch",
69+
"args": [],
70+
"cwd": "${workspaceFolder:swift-bedrock-playground}/backend",
71+
"name": "Release SwiftBedrockService (backend)",
72+
"program": "${workspaceFolder:swift-bedrock-playground}/backend/.build/release/SwiftBedrockService",
73+
"preLaunchTask": "swift: Build Release SwiftBedrockService (backend)"
74+
}
75+
]
76+
}

0 commit comments

Comments
 (0)