-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.63 KB
/
check.yml
File metadata and controls
56 lines (45 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Pull Request Check
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Create .env file
run: |
cat << EOF > .env
# API Configuration
API_PORT=3000
# Database Configuration
DB_HOST=${{ secrets.DB_HOST }}
DB_PORT=3306
DB_USER=${{ secrets.DB_USER }}
DB_PASSWORD=${{ secrets.DB_PASSWORD }}
DB_NAME=${{ secrets.DB_NAME }}
# Data Redis Configuration (Read Only)
DATA_REDIS_HOST=${{ secrets.DATA_REDIS_HOST }}
DATA_REDIS_PORT=6379
DATA_REDIS_PASSWORD=${{ secrets.DATA_REDIS_PASSWORD }}
DATA_REDIS_DB=0
# Cache Redis Configuration (Read/Write)
CACHE_REDIS_HOST=${{ secrets.CACHE_REDIS_HOST }}
CACHE_REDIS_PORT=6379
CACHE_REDIS_PASSWORD=${{ secrets.CACHE_REDIS_PASSWORD }}
CACHE_REDIS_DB=0
# Logging Configuration
LOG_LEVEL=debug
EOF
- name: Install dependencies
run: bun install
- name: Run route tests
run: bun test test/routes/*.test.ts
- name: Run linter
run: bun lint