Skip to content

Commit

Permalink
check docker and try to use command
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed May 16, 2024
1 parent 1e74f5f commit 972ef17
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/shared_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ jobs:
name: API tests
strategy:
matrix:
nextcloudVersion: [ stable26, stable27, stable28, stable29 ]
nextcloudVersion: [ stable28 ]
phpVersionMajor: [ 8 ]
phpVersionMinor: [ 0, 1, 2, 3 ]
phpVersionMinor: [ 3 ]
database: [pgsql, mysql]
# isScheduledEventNightly:
# - ${{github.event_name != 'schedule'}}
Expand All @@ -188,7 +188,6 @@ jobs:
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

defaults:
run:
working-directory: integration_openproject
Expand All @@ -205,6 +204,7 @@ jobs:
VIRTUAL_HOST: "nextcloud"
WITH_REDIS: "YES"
NEXTCLOUD_AUTOINSTALL_APPS_WAIT_TIME: 120
options: --name=nextcloud
volumes:
- /home/runner/work/integration_openproject/integration_openproject:/var/www/html/apps-shared

Expand Down Expand Up @@ -235,28 +235,31 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

steps:



- name: Checkout for nightly CI
if: github.event_name == 'schedule'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: integration_openproject
ref: ${{ inputs.branch }}

- name: Checkout
if: github.event_name != 'schedule'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: integration_openproject

- name: Checkout activity app
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: nextcloud/activity
path: activity
ref: ${{ matrix.nextcloudVersion }}

- name: Checkout groupfolders app
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: nextcloud/groupfolders
path: groupfolders
Expand All @@ -280,6 +283,25 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/integration_openproject/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

# - name: install docker
# run: |
# chmod 644 /usr/share/keyrings/hashicorp-archive-keyring.gpg
# apt-get update
# apt-get install -y docker.io

- name: install docker
uses: papodaca/install-docker-action@main
run: |
docker --version
docker ps
- name: Enter into nextcloud with name
run: |
until curl -s -f http://nextcloud/status.php | grep '"installed":true'; do echo .; sleep 10; done
echo "Nextcloud is up and running!"
echo "listing inside of container!"
docker exec nextcloud /bin/bash -c "ls -la"
- name: API Tests
env:
NEXTCLOUD_BASE_URL: http://nextcloud
Expand Down

0 comments on commit 972ef17

Please sign in to comment.