-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.12 KB
/
build-db.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
# =================================================== #
# Automatically Generated Workflow File, DO NOT EDIT! #
# =================================================== #
name: Build Package (with DB)
on:
workflow_call:
secrets:
git_token:
required: false
jobs:
build:
runs-on: ubuntu-latest
name: Build Package (with DB)
services:
postgres:
image: postgres:13
env:
POSTGRES_USER: github
POSTGRES_PASSWORD: github
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.git_token || github.token }}
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org
node-version: 20
- name: Build Package
run: |
npm clean-install
npm run build
env:
PGPASSWORD: github
PGHOST: localhost
PGUSER: github
PGPORT: 5432