Skip to content

Commit

Permalink
Migrate ocisIntegrationTests and s3ngIntegrationTests to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoguita committed Mar 7, 2023
1 parent 1f4a9ad commit fd9911a
Show file tree
Hide file tree
Showing 43 changed files with 473 additions and 1,357 deletions.
4 changes: 0 additions & 4 deletions .drone.env

This file was deleted.

254 changes: 0 additions & 254 deletions .drone.star

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Compose
on:
workflow_call:
inputs:
test:
required: true
type: string
submodules:
type: boolean
parts:
type: number
part:
type: number

jobs:
compose:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: ${{ inputs.submodules }}
- name: Download image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: revad:test
- name: Test
uses: isbang/compose-action@v1.4.1
with:
compose-file: ./tests/docker/docker-compose.yml
up-flags: --force-recreate --always-recreate-deps --build --abort-on-container-exit -V --remove-orphans --exit-code-from ${{ inputs.test }}
down-flags: --rmi all -v --remove-orphans
services: ${{ inputs.test }}
env:
REVAD_IMAGE: revad:test
PARTS: ${{ inputs.parts }}
PART: ${{ inputs.part }}
7 changes: 2 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
type: boolean
push:
type: boolean
build-args:
type: string
platforms:
type: string

Expand All @@ -28,7 +26,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
if: ${{ inputs.push }}
if: inputs.push
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -41,11 +39,10 @@ jobs:
tags: ${{ inputs.tags }}
load: ${{ inputs.load }}
push: ${{ inputs.push }}
build-args: ${{ inputs.build-args }}
platforms: ${{ inputs.platforms }}
- name: Upload ${{ inputs.tags }} Docker image to artifacts
uses: ishworkh/docker-image-artifact-upload@v1
if: ${{ inputs.load }}
if: inputs.load
with:
image: ${{ inputs.tags }}
retention_days: '1'
62 changes: 35 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,34 +58,42 @@ jobs:
file: docker/Dockerfile.revad
tags: revad:test
load: true
test:
litmus:
needs: docker-revad
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
test: [litmus-1, litmus-2, litmus-3, acceptance-1]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout core
uses: actions/checkout@v3
if: matrix.test == 'acceptance-1'
with:
repository: owncloud/ocis
ref: ${{ vars.OCIS_COMMITID }}
path: tests/ocis
- name: Checkout testing
uses: actions/checkout@v3
if: matrix.test == 'acceptance-1'
with:
repository: owncloud/testing
path: tests/testing
- name: Download image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: revad:test
- name: Test
run: make ${{ matrix.test }} -o test-docker
env:
REVAD_IMAGE: revad:test
test: [litmus-1, litmus-2, litmus-3]
uses: ./.github/workflows/compose.yml
with:
test: ${{ matrix.test }}
acceptance-1:
uses: ./.github/workflows/compose.yml
with:
test: acceptance-1
submodules: true
needs: docker-revad
acceptance-2:
needs: docker-revad
strategy:
fail-fast: false
matrix:
part: [1, 2, 3, 4, 5, 6]
uses: ./.github/workflows/compose.yml
with:
test: acceptance-2
submodules: true
parts: 6
part: ${{ matrix.part }}
acceptance-3:
needs: docker-revad
strategy:
fail-fast: false
matrix:
part: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
uses: ./.github/workflows/compose.yml
with:
test: acceptance-3
submodules: true
parts: 12
part: ${{ matrix.part }}
Loading

0 comments on commit fd9911a

Please sign in to comment.