Skip to content

Commit

Permalink
ci : E2E tests should also run on GitHub MacOS runners
Browse files Browse the repository at this point in the history
+ Enable E2E tests to run on GitHub MacOS runners
+ Use `crazy-max/ghaction-setup-docker` action to set up docker on MacOS

Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohanKanojia committed Feb 10, 2024
1 parent 1ead2bb commit f34d95a
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install DMP
run: mvn ${MAVEN_ARGS} clean install -DskipTests -Djacoco.skip=true

build:
linux-build:
name: Docker ${{ matrix.docker }} on Linux
runs-on: ubuntu-latest
needs: buildWithoutTests
Expand Down Expand Up @@ -64,3 +64,37 @@ jobs:
run: |
cd it/
mvn clean install
macos-build:
name: MacOS
needs: buildWithoutTests
runs-on: macos-13
strategy:
fail-fast: false
matrix:
docker: [v25.0.2,v24.0.9,v23.0.6,v20.10.24]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Cache .m2 registry
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: cache-e2e-${{ github.sha }}-${{ github.run_id }}
- name: Set up Docker
uses: crazy-max/ghaction-setup-docker@v2
with:
version: ${{ matrix.docker }}
- name: Set up Docker Buildx
run: |
brew install docker-buildx
mkdir -p ~/.docker/cli-plugins
ln -sfn /usr/local/opt/docker-buildx/bin/docker-buildx ~/.docker/cli-plugins/docker-buildx
- name: Run Integration tests
run: |
export DOCKER_HOST=unix:///Users/runner/.colima/default/docker.sock
cd it/
mvn clean install

0 comments on commit f34d95a

Please sign in to comment.