-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (58 loc) · 1.65 KB
/
create-projects.yml
File metadata and controls
64 lines (58 loc) · 1.65 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
name: create-projects
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
uses: ./.github/workflows/build.yml
create-projects:
needs: "build"
strategy:
fail-fast: false
matrix:
create-app-options:
- "--api rest --database none --pipeline cloudrun-gitlab"
- "--api graphql --database none --pipeline cloudrun-gitlab"
- "--api rest --database none --pipeline none"
- "--api none --database none --pipeline cloudrun-gitlab"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: create-node-app
uses: ./.github/actions/test-create-project
with:
options: ${{ matrix.create-app-options }}
create-projects-with-postgres:
needs: "build"
services:
postgres:
image: postgres:17
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
strategy:
fail-fast: false
matrix:
create-app-options:
- "--api none --database postgres-knex --pipeline none"
- "--api rest --database postgres-knex --pipeline cloudrun-gitlab"
- "--api graphql --database postgres-knex --pipeline cloudrun-gitlab"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: create-node-app
uses: ./.github/actions/test-create-project
with:
options: ${{ matrix.create-app-options }}