-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (47 loc) · 1.15 KB
/
test-studio.yml
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
name: Test Studio
on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- "studio/**"
- ".github/workflows/studio-test.yml"
workflow_call:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
ports:
- 5432:5432
env:
POSTGRES_USER: pds
POSTGRES_PASSWORD: pds-pass
POSTGRES_DB: pds
minio:
image: minio/minio:edge-cicd
options: --health-cmd "curl -s http://localhost:9000/minio/health/live"
ports:
- 9000:9000
env:
MINIO_ROOT_USER: pds
MINIO_ROOT_PASSWORD: pdspdspds
env:
DB_HOST: localhost
DB_USERNAME: pds
DB_PASSWORD: pds-pass
DB_DATABASE: pds
MINIO_ENDPOINT: localhost
MINIO_ACCESS_KEY: pds
MINIO_SECRET_KEY: pdspdspds
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: cd studio && npm ci
- name: Run tests
run: cd studio && npm test