-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 1.67 KB
/
Copy pathci.yml
File metadata and controls
74 lines (63 loc) · 1.67 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
on:
pull_request:
branches: [main, develop]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: coming_test
POSTGRES_USER: coming
POSTGRES_PASSWORD: coming
options: >-
--health-cmd pg_isready
--health-interval 5s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:7-alpine
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
env:
DB_URL: jdbc:postgresql://localhost:5432/coming_test
DB_USERNAME: coming
DB_PASSWORD: coming
JWT_SECRET: dGVzdHNlY3JldGtleWZvcmNpbWluaW11bWxlbmd0aDMyY2hhcnM=
REDIS_HOST: localhost
REDIS_PORT: 6379
GOOGLE_CLIENT_ID: test
GOOGLE_CLIENT_SECRET: test
KAKAO_CLIENT_ID: test
KAKAO_CLIENT_SECRET: test
CORS_ALLOWED_ORIGINS: http://localhost:3000
OAUTH2_REDIRECT_BASE_URI: http://localhost:3000/auth/callback
DATA_PIPELINE_SECRET: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: temurin
cache: gradle
- name: Run tests
run: ./gradlew test --no-daemon
build-image:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify Docker image builds
run: docker build -t coming-be:verify .