Compare commits
4 Commits
3773adf635
...
7b8210ab7e
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b8210ab7e | |||
| 79339e311c | |||
| 71b750fa5e | |||
| cc109e44f5 |
16
.gitea/workflows/1-ci.yml
Normal file
16
.gitea/workflows/1-ci.yml
Normal file
@ -0,0 +1,16 @@
|
||||
name: TrafficCue Server CI
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- name: Install dependencies
|
||||
run: bun i
|
||||
- run: bunx eslint
|
||||
- run: bunx prettier --check .
|
||||
- run: bun test
|
||||
env:
|
||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||
@ -1,19 +1,11 @@
|
||||
name: TrafficCue Server CI
|
||||
on: [push]
|
||||
name: TrafficCue Server CD
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- staging
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- name: Install dependencies
|
||||
run: bun i
|
||||
- run: bunx eslint
|
||||
- run: bunx prettier --check .
|
||||
- run: bun test
|
||||
env:
|
||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -47,6 +47,7 @@ app.get("/api/config", (c) => {
|
||||
|
||||
return c.json({
|
||||
name: "TrafficCue Server",
|
||||
env: process.env.ENV || "dev",
|
||||
version: "0",
|
||||
capabilities,
|
||||
oidc: process.env.OIDC_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user