Skip to content

Commit

Permalink
Create benchmark.yml
Browse files Browse the repository at this point in the history
Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Update benchmark.yml

Add Benchmark workflow
  • Loading branch information
pouryafard75 committed Feb 12, 2024
1 parent 2fe286e commit c2f7a5d
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Benchmark

on:
workflow_dispatch:
repository_dispatch:
types: [run-project]

jobs:
build-and-run-project:
runs-on: ubuntu-latest

env:
OAuthToken: ${{ secrets.OAUTHTOKEN }}
releaseVersion: CI-benchmark-SNAPSHOT

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Checkout code
uses: actions/checkout@v2

# Build the project and publish to Maven local
- name: Publish to Maven local
run: ./gradlew publishToMavenLocal -x test -x javadoc -Pversion=${{ env.releaseVersion }}

# Clone the DiffBenchmark repository and run benchmarks
- name: Clone DiffBenchmark repository and run benchmarks
run: |
git clone -b automation --depth 1 --single-branch https://github.com/pouryafard75/DiffBenchmark.git &&
cd DiffBenchmark &&
./gradlew -b build.gradle clean run \
-PrefactoringMinerVersion=${{ env.releaseVersion }} \
-DrefactoringMinerPath=$(pwd)/.. \
-PmainClass=benchmark.CmdRunner \
--args="refOracle defects4j"
- name: Zip directory
run: |
zip -r Stats.zip DiffBenchmark/out/oracle/
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Stats
path: Stats.zip

0 comments on commit c2f7a5d

Please sign in to comment.