Skip to content

Commit

Permalink
try to run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
SwikritiT committed Nov 30, 2022
1 parent 964892e commit ac3e1a9
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 9 deletions.
44 changes: 35 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,26 @@ jobs:
phpVersion: 8.1
runs-on: ubuntu-latest
# container: ubuntu:latest
# services:
# openproject:
# image: openproject/community:12
# env:
# OPENPROJECT_SECRET_KEY_BASE: secret
## OPENPROJECT_HOST__NAME: localhost:8081
# OPENPROJECT_HTTPS: false
# OPENPROJECT_PASSWORD__MIN__LENGTH: 0
# OPENPROJECT_ONBOARDING__ENABLED: false
# OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_USER: apiadmin
# OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_PASSWORD: apiadmin
services:
openproject:
image: openproject/community:12
postgres:
image: postgres
ports:
- 5432:5432
env:
OPENPROJECT_SECRET_KEY_BASE: secret
# OPENPROJECT_HOST__NAME: localhost:8081
OPENPROJECT_HTTPS: false
OPENPROJECT_PASSWORD__MIN__LENGTH: 0
OPENPROJECT_ONBOARDING__ENABLED: false
OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_USER: apiadmin
OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_PASSWORD: apiadmin
POSTGRES_PASSWORD: openproject-dev-password
POSTGRES_USER: openproject
POSTGRES_DB: openproject_dev
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
Expand Down Expand Up @@ -79,6 +88,14 @@ jobs:
- name: Setup NPM ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.2'
bundler-cache: true
- run: |
ruby --version
- name: Install PHP Dependencies
run: |
sudo apt-get install git
Expand All @@ -88,6 +105,15 @@ jobs:
./occ maintenance:install --admin-pass=admin
./occ config:system:set allow_local_remote_servers --value 1
git clone --depth 1 https://github.com/nextcloud/notifications.git -b ${{ matrix.nextcloudVersion }} apps/notifications
pwd
- name: setup openproject
run: |
mkdir ~/dev
cd ~/dev
pwd
# git clone https://github.com/opf/openproject.git
# cd openproject

# - name: PHP stan
# run: make phpstan
Expand Down
15 changes: 15 additions & 0 deletions tests/op-database.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#database.yml
default: &default
adapter: postgresql
encoding: unicode
host: localhost:5432
username: openproject
password: openproject-dev-password

development:
<<: *default
database: openproject_dev

test:
<<: *default
database: openproject_test

0 comments on commit ac3e1a9

Please sign in to comment.