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 Feb 3, 2023
1 parent 9f75d9e commit 305ba2d
Show file tree
Hide file tree
Showing 39 changed files with 437 additions and 1,269 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.

4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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 @@ -39,7 +39,7 @@ jobs:
build-args: ${{ inputs.build-args }}
- 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'
80 changes: 66 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ jobs:
strategy:
fail-fast: false
matrix:
file: [docker/Dockerfile.reva, docker/Dockerfile.revad-eos, docker/Dockerfile.revad-ceph]
file:
[
docker/Dockerfile.reva,
docker/Dockerfile.revad-eos,
docker/Dockerfile.revad-ceph,
]
uses: ./.github/workflows/docker.yml
with:
file: ${{ matrix.file }}
Expand All @@ -58,34 +63,81 @@ jobs:
file: docker/Dockerfile.revad
tags: revad:test
load: true
test:
needs: docker-revad
litmus:
runs-on: self-hosted
needs: docker-revad
strategy:
fail-fast: false
matrix:
test: [litmus-1, litmus-2, litmus-3, acceptance-1]
test: [litmus-1, litmus-2, litmus-3]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout core
- 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
acceptance-1:
runs-on: self-hosted
needs: docker-revad
steps:
- name: Checkout
uses: actions/checkout@v3
if: matrix.test == 'acceptance-1'
with:
repository: owncloud/ocis
ref: ${{ vars.OCIS_COMMITID }}
path: tests/ocis
- name: Checkout testing
submodules: true
- name: Download image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: revad:test
- name: Test
run: make acceptance-1 -o test-docker
env:
REVAD_IMAGE: revad:test
acceptance-2:
needs: docker-revad
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
part: [1, 2, 3, 4, 5, 6]
steps:
- name: Checkout
uses: actions/checkout@v3
if: matrix.test == 'acceptance-1'
with:
repository: owncloud/testing
path: tests/testing
submodules: true
- name: Download image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: revad:test
- name: Test
run: make ${{ matrix.test }} -o test-docker
run: make acceptance-2 -o test-docker
env:
REVAD_IMAGE: revad:test
PART: ${{ matrix.part }}
PARTS: 6
acceptance-3:
needs: docker-revad
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
part: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Download image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: revad:test
- name: Test
run: make acceptance-3 -o test-docker
env:
REVAD_IMAGE: revad:test
PART: ${{ matrix.part }}
PARTS: 12
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "docs/themes/docsy"]
path = docs/themes/docsy
url = https://github.com/google/docsy
url = https://github.com/google/docsy.git
[submodule "tests/ocis"]
path = tests/ocis
url = https://github.com/owncloud/ocis.git
Expand Down
Loading

0 comments on commit 305ba2d

Please sign in to comment.