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 15, 2024
1 parent 1e74f5f commit 989ea85
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 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: [ 2 ]
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 Down Expand Up @@ -235,28 +234,40 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

steps:
- name: Checkout docker
uses: docker/setup-buildx-action@v3
run: |
apt-get install -y curl
- name: Install Compose
uses: ndeloof/[email protected]
with:
version: v2.1.0 # defaults to 'latest'
legacy: true # will also install in PATH as `docker-compose`


- 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 +291,12 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/integration_openproject/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Check version docker compose
run: |
until curl -s -f http://nextcloud/status.php | grep '"installed":true'; do echo .; sleep 10; done
docker ps
docker compose ps
- name: API Tests
env:
NEXTCLOUD_BASE_URL: http://nextcloud
Expand Down

0 comments on commit 989ea85

Please sign in to comment.