Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
karatakis committed Sep 16, 2024
0 parents commit cc64e5c
Show file tree
Hide file tree
Showing 35 changed files with 11,543 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/target
.vscode
.idea
/deployments/Pulumi.*.yaml
/deployments/tailcall
!/target/release/tailcall-launchpad
/deployments/node_modules
/deployments/bin
30 changes: 30 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check Build

on:
push:
branches:
- main
pull_request:
branches: [main]
types: [opened, reopened, synchronize, labeled]
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
name: Check rust code for syntax errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Protoc
uses: arduino/setup-protoc@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
- name: Check Code
run: cargo check --release
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy System

on:
workflow_dispatch:

jobs:
Deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "22.3.0"

- name: Install Node Dependencies
run: npm i

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- uses: pulumi/actions@v5
with:
command: up
stack-name: dev
config-map: "{
tailcall-launchpad:PULUMI_ACCESS_TOKEN: { value: ${{ secrets.PULUMI_ACCESS_TOKEN }}, secret: true },
tailcall-launchpad:AWS_ACCESS_KEY_ID: { value: ${{ secrets.AWS_ACCESS_KEY_ID }}, secret: true },
tailcall-launchpad:AWS_SECRET_ACCESS_KEY: { value: ${{ secrets.AWS_SECRET_ACCESS_KEY }}, secret: true },
tailcall-launchpad:AWS_REGION: { value: ${{ secrets.AWS_REGION }}, secret: true },
}"
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check Lint

on:
push:
branches:
- main
pull_request:
branches: [main]
types: [opened, reopened, synchronize, labeled]
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Run Formatter and Lint Check
runs-on: ubuntu-latest
env:
LINT_MODE: "check"
steps:
- uses: actions/checkout@v4
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20.11.0"
- name: Install Prettier
run: npm install --global prettier
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
- name: Run Lint Script
run: ./lint.sh --mode=$LINT_MODE
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/target
.env
.vscode
.idea
/deployments/Pulumi.*.yaml
/deployments/tailcall
/bin/
/node_modules/
Pulumi.*.yaml
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"semi": false,
"singleQuote": false,
"printWidth": 120,
"tabWidth": 2,
"bracketSpacing": false,
"overrides": [
{
"files": ["devcontainer.json"],
"options": {
"trailingComma": "none"
}
}
]
}
Loading

0 comments on commit cc64e5c

Please sign in to comment.