Skip to content

Commit

Permalink
run all apps
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchcivic committed Jan 22, 2025
1 parent 940c2c4 commit 25ffad3
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/express.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Express Build and Dev

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/civic-auth/server/express
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies'
shell: bash
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Start dev server
run: yarn dev & npx wait-on http://localhost:3007
timeout-minutes: 2
25 changes: 25 additions & 0 deletions .github/workflows/fastify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Express Build and Dev

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/civic-auth/server/fastify
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies'
shell: bash
run: yarn install --frozen-lockfile

- name: Start dev server
run: yarn dev & npx wait-on http://localhost:3008
timeout-minutes: 2
25 changes: 25 additions & 0 deletions .github/workflows/hono.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Hono Build and Dev

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/civic-auth/server/hono
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies'
shell: bash
run: yarn install --frozen-lockfile

- name: Start dev server
run: yarn dev & npx wait-on http://localhost:3009
timeout-minutes: 2
28 changes: 28 additions & 0 deletions .github/workflows/reactjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ReactJS Build and Dev

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/civic-auth/reactjs
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies'
shell: bash
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Start dev server
run: yarn dev & npx wait-on http://localhost:3006
timeout-minutes: 2
25 changes: 25 additions & 0 deletions .github/workflows/wagmi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Wagmi Build and Dev

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/civic-auth/server/hono
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies'
shell: bash
run: yarn install --frozen-lockfile

- name: Start dev server
run: yarn dev & npx wait-on http://localhost:3010
timeout-minutes: 2
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev"
}
}
13 changes: 13 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"dev": {
"cache": false,
"persistent": true
}
}
}

0 comments on commit 25ffad3

Please sign in to comment.