-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
178cfdb
commit 42fde59
Showing
13 changed files
with
6,834 additions
and
1,244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: "Check" | ||
description: "Run Checks" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- name: Run Checks | ||
shell: bash | ||
run: npm run check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Deploy" | ||
description: "Deploy Apps" | ||
inputs: | ||
cloudflare_api_token: | ||
description: "the couldflare api token" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- name: Run Build | ||
shell: bash | ||
run: npm run build | ||
- name: Deploy To Cloudflare | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ inputs.cloudflare_api_token }} | ||
workingDirectory: "apps/web" | ||
command: pages deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Setup" | ||
description: "Setup the dependencies" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache Turbo Build Setup | ||
uses: actions/cache@v4 | ||
with: | ||
path: .turbo | ||
key: ${{ runner.os }}-release-job-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-release-job- | ||
- name: Setup Node.js Environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
- name: Install Dependencies | ||
shell: bash | ||
run: npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: "Test" | ||
description: "Run Tests" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- name: Run Tests | ||
shell: bash | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
deployments: write | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Out Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Run Checks | ||
uses: ./.github/actions/check | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Out Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Run Tests | ||
uses: ./.github/actions/test | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- check | ||
- test | ||
steps: | ||
- name: Check Out Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Deploy App | ||
uses: ./.github/actions/deploy | ||
with: | ||
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import { setupDevPlatform } from "@cloudflare/next-on-pages/next-dev"; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
|
||
if (process.env.NODE_ENV === "development") { | ||
await setupDevPlatform(); | ||
} | ||
|
||
export default nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"extends": ["//"], | ||
"tasks": { | ||
"build": { | ||
"dependsOn": ["next-on-pages:build"], | ||
"outputs": [".vercel/**"] | ||
}, | ||
"next-on-pages:build": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name = "jeton" | ||
compatibility_date = "2024-07-29" | ||
compatibility_flags = ["nodejs_compat"] | ||
pages_build_output_dir = ".vercel/output/static" |
Oops, something went wrong.