Skip to content

Replace action-read-yaml with $GITHUB_ENV in GitHub actions #727

Replace action-read-yaml with $GITHUB_ENV in GitHub actions

Replace action-read-yaml with $GITHUB_ENV in GitHub actions #727

Workflow file for this run

name: build
on: [pull_request]
jobs:
build:
if: github.repository_owner == 'hazelcast'
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v4
- name: Read Java Config
run: cat ${{ github.workspace }}/.github/java-config.env >> $GITHUB_ENV
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
architecture: 'x64'
distribution: ${{ env.JAVA_DISTRIBUTION }}
cache: 'maven'
- name: Build with Maven
run: ./mvnw clean package -V -B -P checkstyle,findbugs