From 9822418fe695b2b778eb624fd2a8a6e2a33afe1f Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Tue, 22 Oct 2024 11:43:27 +0200 Subject: [PATCH] ci: build pipeline based on MacOS Signed-off-by: Marc Nuri --- .github/workflows/build-macos.yml | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/build-macos.yml diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml new file mode 100644 index 0000000000..776270a8b8 --- /dev/null +++ b/.github/workflows/build-macos.yml @@ -0,0 +1,57 @@ +# +# Copyright (c) 2019 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at: +# +# https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation +# + +name: Build :: MacOS + +on: + push: + branches: + - master + pull_request: + +permissions: + contents: read + +jobs: + build-jkube: + name: Build JKube + runs-on: macos-latest + steps: + - name: Harden Runner + uses: step-security/harden-runner@398bb08048482c421b1da00a58a1b472a306eb85 + with: + disable-sudo: true + egress-policy: block + allowed-endpoints: > + downloads.gradle.org:443 + github.com:443 + repo.gradle.org:443 + repo.maven.apache.org:443 + repo1.maven.org:443 + repository.jboss.org:443 + services.gradle.org:443 + objects.githubusercontent.com:443 + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + - name: Setup Java 17 + uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 + with: + java-version: '17' + distribution: 'temurin' + - name: Install JKube + run: | + mvn -B -f "jkube/pom.xml" -DskipTests clean install + - name: Install Integration Tests (Downloads dependencies) + run: | + ./mvnw -B clean install