Skip to content

Commit cc64e5c

Browse files
committed
feat: initial commit
0 parents  commit cc64e5c

35 files changed

+11543
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/target
2+
.vscode
3+
.idea
4+
/deployments/Pulumi.*.yaml
5+
/deployments/tailcall
6+
!/target/release/tailcall-launchpad
7+
/deployments/node_modules
8+
/deployments/bin

.github/workflows/check.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches: [main]
9+
types: [opened, reopened, synchronize, labeled]
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
check:
19+
name: Check rust code for syntax errors
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Install Protoc
24+
uses: arduino/setup-protoc@v3
25+
- uses: actions-rust-lang/setup-rust-toolchain@v1
26+
with:
27+
toolchain: stable
28+
components: clippy, rustfmt
29+
- name: Check Code
30+
run: cargo check --release

.github/workflows/deploy.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy System
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
Deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Install Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: "22.3.0"
18+
19+
- name: Install Node Dependencies
20+
run: npm i
21+
22+
- name: Configure AWS Credentials
23+
uses: aws-actions/configure-aws-credentials@v1
24+
with:
25+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
26+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
27+
aws-region: ${{ secrets.AWS_REGION }}
28+
29+
- uses: pulumi/actions@v5
30+
with:
31+
command: up
32+
stack-name: dev
33+
config-map: "{
34+
tailcall-launchpad:PULUMI_ACCESS_TOKEN: { value: ${{ secrets.PULUMI_ACCESS_TOKEN }}, secret: true },
35+
tailcall-launchpad:AWS_ACCESS_KEY_ID: { value: ${{ secrets.AWS_ACCESS_KEY_ID }}, secret: true },
36+
tailcall-launchpad:AWS_SECRET_ACCESS_KEY: { value: ${{ secrets.AWS_SECRET_ACCESS_KEY }}, secret: true },
37+
tailcall-launchpad:AWS_REGION: { value: ${{ secrets.AWS_REGION }}, secret: true },
38+
}"
39+
env:
40+
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}

.github/workflows/lint.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Check Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches: [main]
9+
types: [opened, reopened, synchronize, labeled]
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
lint:
19+
name: Run Formatter and Lint Check
20+
runs-on: ubuntu-latest
21+
env:
22+
LINT_MODE: "check"
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Install Protoc
26+
uses: arduino/setup-protoc@v3
27+
- name: Install Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "20.11.0"
31+
- name: Install Prettier
32+
run: npm install --global prettier
33+
- uses: actions-rust-lang/setup-rust-toolchain@v1
34+
with:
35+
toolchain: stable
36+
components: clippy, rustfmt
37+
- name: Run Lint Script
38+
run: ./lint.sh --mode=$LINT_MODE

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/target
2+
.env
3+
.vscode
4+
.idea
5+
/deployments/Pulumi.*.yaml
6+
/deployments/tailcall
7+
/bin/
8+
/node_modules/
9+
Pulumi.*.yaml

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"semi": false,
3+
"singleQuote": false,
4+
"printWidth": 120,
5+
"tabWidth": 2,
6+
"bracketSpacing": false,
7+
"overrides": [
8+
{
9+
"files": ["devcontainer.json"],
10+
"options": {
11+
"trailingComma": "none"
12+
}
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)