Merge pull request #30 from cloudhubs/dev #9
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: CIMET (Change Impact Microservice Evolution Tool) | |
# | |
#on: | |
# pull_request: | |
# types: | |
# - opened | |
# branches: | |
# - 'master' # <-- Change Base Pull Request Branch Here | |
# | |
#jobs: | |
# build-and-extract: | |
# runs-on: ubuntu-latest | |
# | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Set up JDK 17 | |
# uses: actions/setup-java@v3 | |
# with: | |
# java-version: '17' | |
# distribution: 'temurin' | |
# cache: maven | |
# | |
# - name: Extract Source Branch Name | |
# shell: bash | |
# run: echo "SOURCE_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV" | |
# id: extract_source_branch | |
# | |
# - name: Extract Base Branch Name | |
# shell: bash | |
# run: echo "BASE_BRANCH=${GITHUB_BASE_REF}" >> "$GITHUB_ENV" | |
# id: extract_base_branch | |
# | |
# - name: Install Maven | |
# run: sudo apt-get install -y maven | |
# | |
# - name: Clone cimet Repository | |
# run: git clone https://github.com/cloudhubs/cimet tool | |
# working-directory: ./ # Clone into the root directory | |
# | |
# - name: Build Cimet with Maven | |
# run: mvn clean install -DskipTests | |
# working-directory: ./tool | |
# | |
# - name: Get Cimet Config | |
# env: | |
# CIMET_CONFIG: ${{ vars.CIMET_CONFIG }} | |
# run: echo "$CIMET_CONFIG" >> "./tool/cimet-config.json" | |
# | |
# - name: Run Cimet | |
# run: mvn exec:java -Dexec.mainClass="edu.university.ecs.lab.CimetRunner" -Dexec.args="cimet-config.json $BASE_BRANCH ${{ github.event.pull_request.base.sha }} $SOURCE_BRANCH ${{ github.event.pull_request.head.sha }}" | |
# working-directory: ./tool | |
# | |
# - name: Save out folder | |
# uses: actions/upload-artifact@v2 | |
# with: | |
# name: changed-files-diff | |
# path: ./tool/out |