diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 0bbf95dd..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,34 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: circleci/openjdk:8-jdk-browsers - steps: - - checkout - - restore_cache: - # Read about caching dependencies: https://circleci.com/docs/2.0/caching/ - key: gradle-pitest-plugin-2-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "gradle/cdeliveryboy-release.gradle" }} - - - run: ./gradlew clean check - - run: ./gradlew funTest - # To leave clear state in cached ~/.gradle - doesn't work as expected anyway... - - run: ./gradlew --stop - - - save_cache: - # TODO: Add some excludes? - paths: - - ~/.gradle - key: gradle-pitest-plugin-2-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "gradle/cdeliveryboy-release.gradle" }} - - # Upload test results for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ - - store_test_results: - path: build/test-results - - # Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ - - store_artifacts: - path: build/reports/tests/test - destination: test - - store_artifacts: - path: build/reports/tests/funcTest - destination: funcTest - diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..8a8546d7 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,21 @@ +name: Check +on: + [pull_request] +jobs: + unit-tests: + name: Tests + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Setup Java 15 + uses: actions/setup-java@v1 + with: + java-version: '15' + + - name: Run Checks + run: ./gradlew test funcTest check --stacktrace --no-daemon -Dorg.gradle.jvmargs="-XX:MaxMetaspaceSize=512m -Xmx512m" + + - name: Stop Gradle + run: ./gradlew --stop