Skip to content

Commit

Permalink
[issues-1313] - Use GitHub actions for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobrz committed Sep 23, 2024
1 parent ff4e2b0 commit 5187bd7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
- 'doc/**'
- '.circleci/**'
env:
# failsafe.groups configuration depends on the env setup.
FAILSAFE_GROUPS: ''
DOCKER_HOST: 'unix:///var/run/docker.sock'

jobs:
Expand All @@ -23,6 +21,9 @@ jobs:
fail-fast: false
matrix:
java: ['11']
job:
- [variant: 'docker', failsafe-groups: 'org.arquillian.cube.docker.impl.requirement.RequiresDocker']
- [variant: 'kubernetes', failsafe-groups: 'org.arquillian.cube.kubernetes.impl.requirement.RequiresKubernetes']

steps:
- name: Setup Minikube
Expand All @@ -34,8 +35,6 @@ jobs:
kubernetes version: 'v1.30.0'
github token: ${{ secrets.GITHUB_TOKEN }}
start args: "--memory='4gb' --cpus='2'"
env:
FAILSAFE_GROUPS: "-Dfailsafe.groups=\"org.arquillian.cube.docker.impl.requirement.RequiresDocker,org.arquillian.cube.kubernetes.impl.requirement.RequiresKubernetes\""
- name: Enable minikube registry
run: |
minikube addons enable registry
Expand All @@ -58,7 +57,7 @@ jobs:
./mvnw verify -q -U -DskipTests # pre-fetch dependencies
- name: Build with Maven Java ${{ matrix.java }}
run: |
./mvnw -fae clean package ${{ env.FAILSAFE_GROUPS }}
./mvnw -fae clean package ${{ matrix.job.failsafe-groups }}
- uses: actions/upload-artifact@v3
if: failure()
with:
Expand Down

0 comments on commit 5187bd7

Please sign in to comment.