From a347942f49026ab73211010ef264446572d41e06 Mon Sep 17 00:00:00 2001 From: Maciej Kwidzinski Date: Mon, 6 Mar 2023 17:54:41 +0100 Subject: [PATCH] Switch CircleCI to GitHub Actions --- .circleci/config.yml | 22 ---------------------- .github/workflows/ci.yml | 20 ++++++++++++++++++++ CONTRIBUTING.md | 5 ++--- README.md | 2 -- 4 files changed, 22 insertions(+), 27 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/ci.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b14974d..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: 2 -jobs: - build: - machine: true - working_directory: ~/repo - environment: - TERM: dumb - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "pom.xml" }} - - v1-dependencies- - - run: ./mvnw verify -Djpt.btf.provision=true - - save_cache: - paths: - - ~/.m2 - key: v1-dependencies-{{ checksum "pom.xml" }} - - store_artifacts: - path: ./target/jpt-workspace - - store_test_results: - path: ./target/failsafe-reports diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b763b34 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '8' + cache: maven + - name: Build with Maven + run: ./mvnw --batch-mode verify -Djpt.btf.provision=true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b7c2164..dd9f2e6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,9 +6,8 @@ Thank you for taking the time to contribute! Pull requests, issues and comments are welcome. For pull requests, please: 1. fork the repo - 2. enable CI for your fork, see [CircleCI docs](https://circleci.com/docs/2.0/project-build/#adding-projects) - 3. create a branch with your changes - 4. raise a pull request + 2. create a branch with your changes + 3. raise a pull request Atlassian requires contributors to sign a Contributor License Agreement, known as a CLA. This serves as a record stating that the contributor is diff --git a/README.md b/README.md index ce565cc..f808ab5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![CircleCI](https://circleci.com/gh/atlassian/jpt-example-btf.svg?style=svg)](https://circleci.com/gh/atlassian/jpt-example-btf) - # Benchmark your Jira instance Read and customize the [benchmark](src/test/java/com/atlassian/performance/tools/examplebtf/MyBtfBenchmarkIT.java).