Skip to content

Commit 1d682e9

Browse files
committed
try to run locally
1 parent 964892e commit 1d682e9

File tree

2 files changed

+51
-9
lines changed

2 files changed

+51
-9
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,26 @@ jobs:
2222
phpVersion: 8.1
2323
runs-on: ubuntu-latest
2424
# container: ubuntu:latest
25+
# services:
26+
# openproject:
27+
# image: openproject/community:12
28+
# env:
29+
# OPENPROJECT_SECRET_KEY_BASE: secret
30+
## OPENPROJECT_HOST__NAME: localhost:8081
31+
# OPENPROJECT_HTTPS: false
32+
# OPENPROJECT_PASSWORD__MIN__LENGTH: 0
33+
# OPENPROJECT_ONBOARDING__ENABLED: false
34+
# OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_USER: apiadmin
35+
# OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_PASSWORD: apiadmin
2536
services:
26-
openproject:
27-
image: openproject/community:12
37+
postgres:
38+
image: postgres
39+
ports:
40+
- 5432:5432
2841
env:
29-
OPENPROJECT_SECRET_KEY_BASE: secret
30-
# OPENPROJECT_HOST__NAME: localhost:8081
31-
OPENPROJECT_HTTPS: false
32-
OPENPROJECT_PASSWORD__MIN__LENGTH: 0
33-
OPENPROJECT_ONBOARDING__ENABLED: false
34-
OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_USER: apiadmin
35-
OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_PASSWORD: apiadmin
42+
POSTGRES_PASSWORD: openproject-dev-password
43+
POSTGRES_USER: openproject
44+
POSTGRES_DB: openproject_dev
3645
steps:
3746
- name: Cancel previous runs
3847
uses: styfle/[email protected]
@@ -79,6 +88,15 @@ jobs:
7988
- name: Setup NPM ${{ steps.versions.outputs.npmVersion }}
8089
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
8190

91+
- name: Setup Ruby
92+
uses: ruby/setup-ruby@v1
93+
with:
94+
ruby-version: '3.1.2'
95+
bundler-cache: true
96+
- run: |
97+
bundle exec rake
98+
ruby --version
99+
82100
- name: Install PHP Dependencies
83101
run: |
84102
sudo apt-get install git
@@ -88,6 +106,15 @@ jobs:
88106
./occ maintenance:install --admin-pass=admin
89107
./occ config:system:set allow_local_remote_servers --value 1
90108
git clone --depth 1 https://github.com/nextcloud/notifications.git -b ${{ matrix.nextcloudVersion }} apps/notifications
109+
pwd
110+
111+
- name: setup openproject
112+
run: |
113+
mkdir ~/dev
114+
cd ~/dev
115+
pwd
116+
# git clone https://github.com/opf/openproject.git
117+
# cd openproject
91118

92119
# - name: PHP stan
93120
# run: make phpstan

tests/op-database.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#database.yml
2+
default: &default
3+
adapter: postgresql
4+
encoding: unicode
5+
host: localhost:5432
6+
username: openproject
7+
password: openproject-dev-password
8+
9+
development:
10+
<<: *default
11+
database: openproject_dev
12+
13+
test:
14+
<<: *default
15+
database: openproject_test

0 commit comments

Comments
 (0)