From 4db3ec545a19993946293ab6a04237fc13a2d04e Mon Sep 17 00:00:00 2001 From: Usman Shaikh Date: Thu, 5 Dec 2024 11:25:18 +0000 Subject: [PATCH] circleci -> github actions --- .circleci/circleci-readme.md | 24 -------- .circleci/config.yml | 106 ----------------------------------- .github/CONTRIBUTING.md | 2 +- .gitignore | 3 - README.md | 2 +- 5 files changed, 2 insertions(+), 135 deletions(-) delete mode 100644 .circleci/circleci-readme.md delete mode 100644 .circleci/config.yml diff --git a/.circleci/circleci-readme.md b/.circleci/circleci-readme.md deleted file mode 100644 index 53449b8..0000000 --- a/.circleci/circleci-readme.md +++ /dev/null @@ -1,24 +0,0 @@ -CI Debug Notes -================ -To validate some circleci stuff, I was able to run a “build locally” using the steps below. -The local build runs in a docker container. - - * (Once) Install circleci client (`brew install circleci`) - - * Convert the “real” config.yml into a self contained (non-workspace) config via: - - circleci config process .circleci/config.yml > .circleci/local-config.yml - - * Run a local build with the following command: - - circleci local execute -c .circleci/local-config.yml 'gradle/test-1' - - With the above command, operations that cannot occur during a local build will show an error like this: - - ``` - ... Error: FAILED with error not supported - ``` - - However, the build will proceed and can complete “successfully”, which allows you to verify scripts in your config, etc. - - If the build does complete successfully, you should see a happy yellow `Success!` message. diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index e342269..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,106 +0,0 @@ -version: 2.1 -orbs: - gradle: circleci/gradle@3.0.0 -executors: - openjdk-11-executor: - docker: - - image: 'circleci/android:api-29' - -commands: - configure-git: - steps: - - run: - name: Configure GIT with user info for pushing - command: | - git config user.name "$GITHUB_USERNAME" - git config user.email "$GITHUB_EMAIL" - - gradle-release: - steps: - - run: - command: | - ./gradlew clean release -Dorg.gradle.daemon=false --stacktrace -x test -x integrationTest - -jobs: - do-release: - executor: openjdk-11-executor - parameters: - ssh-fingerprints: - type: string - steps: - - add_ssh_keys: - fingerprints: - - <> - - checkout - - configure-git - - gradle-release - -it-defaults: &it-defaults - executor: openjdk-11-executor - test_results_path: build/test-results - reports_path: build/reports - -workflows: - checkout-run_task: - jobs: - - gradle/test: - executor: openjdk-11-executor - test_results_path: build/test-results - reports_path: build/reports - test_command: test --no-daemon --debug --max-workers 2 - -# Running all ITs at once was causing intermittent memory errors (as per below config), so we split ITs into batches. -# integration-test: -# jobs: -# - gradle/test: -# executor: openjdk-8-executor -# test_results_path: build/test-results -# reports_path: build/reports -# test_command: --fail-fast --no-daemon -Dorg.gradle.daemon=false --info integrationTest - - it1: - jobs: - - gradle/test: - <<: *it-defaults - test_command: --no-daemon -Dorg.gradle.daemon=false --info it1 - it2: - jobs: - - gradle/test: - <<: *it-defaults - test_command: --no-daemon -Dorg.gradle.daemon=false --info it2 - it3: - jobs: - - gradle/test: - <<: *it-defaults - test_command: --no-daemon -Dorg.gradle.daemon=false --info it3 - it4: - jobs: - - gradle/test: - <<: *it-defaults - test_command: --no-daemon -Dorg.gradle.daemon=false --info it4 - it5: - jobs: - - gradle/test: - <<: *it-defaults - test_command: --no-daemon -Dorg.gradle.daemon=false --info it5 - it6: - jobs: - - gradle/test: - <<: *it-defaults - test_command: --no-daemon -Dorg.gradle.daemon=false --info it6 - - release: - jobs: - - approve-release: - type: approval - filters: - branches: - only: main - - do-release: - ssh-fingerprints: "13:f3:b7:44:ef:87:83:87:87:f9:ae:b7:5f:7f:51:33" - context: rso-base - requires: - - approve-release - filters: - branches: - only: main diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 19137ff..76e6127 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -24,7 +24,7 @@ versus how you fixed it. * Sign the [Sonatype CLA](https://sonatypecla.herokuapp.com/sign-cla) * Try to fix one thing per pull request! Many people work on this code, so the more focused your changes are, the less of a headache other people will have when they merge their work in. -* Ensure your Pull Request passes tests either locally or via CircleCI (it will run automatically on your PR) +* Ensure your Pull Request passes tests either locally or via GitHub Actions (workflow will run on your PR) * Make sure to add yourself or your organization to CONTRIBUTORS.md as a part of your PR, if you are new to the project! * If you're stuck, ask our [gitter channel](https://gitter.im/sonatype/nexus-developers)! There are a number of experienced programmers who are happy to help with learning and troubleshooting. diff --git a/.gitignore b/.gitignore index 218fc06..8098b43 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,3 @@ target/ .project .idea .DS_Store - -# ci config for local ci build -.circleci/local-config.yml diff --git a/README.md b/README.md index 7d9cac9..aabe179 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ [![Gradle Plugins Portal](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/org/sonatype/gradle/plugins/scan/org.sonatype.gradle.plugins.scan.gradle.plugin/maven-metadata.xml.svg?colorB=007ec6&label=Gradle%20Plugins%20Portal)](https://plugins.gradle.org/plugin/org.sonatype.gradle.plugins.scan) -[![CircleCI Build Status](https://circleci.com/gh/sonatype-nexus-community/scan-gradle-plugin.svg?style=shield "CircleCI Build Status")](https://circleci.com/gh/sonatype-nexus-community/scan-gradle-plugin) +![GitHub Actions CI](https://github.com/sonatype-nexus-community/scan-gradle-plugin/actions/workflows/ci.yaml/badge.svg) Gradle plugin that scans the dependencies of a Gradle project using Sonatype platforms: OSS Index and Nexus IQ Server.