chore(deps): bump com.gradle.enterprise from 3.11.1 to 3.18 #650
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-build | |
on: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- '*.*' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
# code-analysis: | |
# name: code-analysis | |
# runs-on: ubuntu-latest | |
# if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' | |
# steps: | |
# - uses: actions/checkout@v2.3.4 | |
# with: | |
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
# - name: Set up JDK 11 | |
# uses: actions/setup-java@v2 | |
# with: | |
# java-version: 11 | |
# distribution: 'temurin' | |
# check-latest: true | |
# cache: 'gradle' | |
# - name: Cache SonarCloud packages | |
# uses: actions/cache@v2.1.7 | |
# with: | |
# path: ~/.sonar/cache | |
# key: ${{ runner.os }}-sonar | |
# restore-keys: ${{ runner.os }}-sonar | |
# - name: Build and analyze | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# run: ./gradlew build sonarqube --no-daemon --info | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2.3.4 | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 8 | |
distribution: 'temurin' | |
check-latest: true | |
cache: 'gradle' | |
- name: build-gradle | |
run: ./gradlew build test install --build-cache --scan -s --no-daemon | |
- name: Archive build results | |
uses: actions/upload-artifact@v2.3.1 | |
if: always() | |
with: | |
name: ${{ runner.os }}-build-${{ github.sha }} | |
path: | | |
build/install | |
build/resources | |
- name: integration-test | |
if: runner.os != 'Windows' | |
run: | | |
export PATH=`pwd`/build/install/mulefd/bin:$PATH | |
cd itests | |
./tests.sh | |
testing: | |
needs: build | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
java: [8,11] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
check-latest: true | |
- uses: actions/download-artifact@v2.1.0 | |
with: | |
name: ${{ runner.os }}-build-${{ github.sha }} | |
path: build | |
- name: Test Linux build | |
if: runner.os == 'Linux' | |
run: | | |
java -version | |
tree . | |
chmod +x ./build/install/mulefd/bin/mulefd | |
./build/install/mulefd/bin/mulefd version | |
./build/install/mulefd/bin/mulefd graph -o test.png -t ./build/resources/test ./build/resources/test/example-config.xml | |
- name: Test Windows build | |
if: runner.os == 'Windows' | |
run: | | |
java -version | |
./build/install/mulefd/bin/mulefd.bat version | |
./build/install/mulefd/bin/mulefd.bat graph -o test.png -t ./build/resources/test ./build/resources/test/example-config.xml |