From f71a2410baee4379ebb39adfb69c9480beed09e6 Mon Sep 17 00:00:00 2001 From: Roberto Perez Alcolea Date: Tue, 17 Aug 2021 10:43:07 -0700 Subject: [PATCH] Remove TravisCI and use Github Actions --- .github/workflows/nebula-ci.yml | 45 +++++++++++++++++++++++ .github/workflows/nebula-publish.yml | 51 ++++++++++++++++++++++++++ .github/workflows/nebula-snapshot.yml | 37 +++++++++++++++++++ .travis.yml | 18 --------- buildViaTravis.sh | 28 -------------- installViaTravis.sh | 10 ----- secrets/signing-key.enc | Bin 6800 -> 0 bytes 7 files changed, 133 insertions(+), 56 deletions(-) create mode 100644 .github/workflows/nebula-ci.yml create mode 100644 .github/workflows/nebula-publish.yml create mode 100644 .github/workflows/nebula-snapshot.yml delete mode 100644 .travis.yml delete mode 100755 buildViaTravis.sh delete mode 100755 installViaTravis.sh delete mode 100644 secrets/signing-key.enc diff --git a/.github/workflows/nebula-ci.yml b/.github/workflows/nebula-ci.yml new file mode 100644 index 00000000..314ca6f5 --- /dev/null +++ b/.github/workflows/nebula-ci.yml @@ -0,0 +1,45 @@ +name: "CI" +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + # test against JDK 8 + java: [ 8 ] + name: CI with Java ${{ matrix.java }} + steps: + - uses: actions/checkout@v1 + - name: Setup jdk + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - uses: actions/cache@v1 + id: gradle-cache + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }} + restore-keys: | + - ${{ runner.os }}-gradle- + - uses: actions/cache@v1 + id: gradle-wrapper-cache + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + restore-keys: | + - ${{ runner.os }}-gradlewrapper- + - name: Build with Gradle + run: ./gradlew --info --stacktrace build + env: + CI_NAME: github_actions + CI_BUILD_NUMBER: ${{ github.sha }} + CI_BUILD_URL: 'https://github.com/${{ github.repository }}' + CI_BRANCH: ${{ github.ref }} + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/nebula-publish.yml b/.github/workflows/nebula-publish.yml new file mode 100644 index 00000000..5e20218a --- /dev/null +++ b/.github/workflows/nebula-publish.yml @@ -0,0 +1,51 @@ +name: "Publish candidate/release to NetflixOSS and Maven Central" +on: + push: + tags: + - v*.*.* + - v*.*.*-rc.* + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Setup jdk 8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - uses: actions/cache@v1 + id: gradle-cache + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }} + restore-keys: | + - ${{ runner.os }}-gradle- + - uses: actions/cache@v1 + id: gradle-wrapper-cache + with: + path: ~/.gradle/wrapper + key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + restore-keys: | + - ${{ runner.os }}-gradlewrapper- + - name: Publish candidate + if: contains(github.ref, '-rc.') + run: ./gradlew --info --stacktrace -Prelease.useLastTag=true candidate + env: + NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} + NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }} + NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} + NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} + - name: Publish release + if: (!contains(github.ref, '-rc.')) + run: ./gradlew --info -Prelease.useLastTag=true final + env: + NETFLIX_OSS_SONATYPE_USERNAME: ${{ secrets.ORG_SONATYPE_USERNAME }} + NETFLIX_OSS_SONATYPE_PASSWORD: ${{ secrets.ORG_SONATYPE_PASSWORD }} + NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} + NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }} + NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} + NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} diff --git a/.github/workflows/nebula-snapshot.yml b/.github/workflows/nebula-snapshot.yml new file mode 100644 index 00000000..b4ee7409 --- /dev/null +++ b/.github/workflows/nebula-snapshot.yml @@ -0,0 +1,37 @@ +name: "Publish snapshot to NetflixOSS and Maven Central" + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 8 + - uses: actions/cache@v2 + id: gradle-cache + with: + path: | + ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + - uses: actions/cache@v2 + id: gradle-wrapper-cache + with: + path: | + ~/.gradle/wrapper + key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + - name: Build + run: ./gradlew build snapshot + env: + NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} + NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }} + NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} + NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1658e3d0..00000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: java -jdk: -- openjdk8 -- openjdk11 -sudo: false -install: "./installViaTravis.sh" -script: "./buildViaTravis.sh" -env: - global: - - secure: XnsxAHpVyqpvKS5+9xmLVVeIywT+qI/Nc4pH/9V3co/asbYwPUd7/thfFPzP2fgc/Q2mMBc5Xg6ItFnIKY9b5O7wfep7pBJNPG04MdkS9c3uFRxF1XtfC6Ukct4ILt7ttw83rpN2Os/q1lEJ6KJD6n9K8xhubwWFSSXxCzYw2sc= - - secure: P/K+GZHhEkHN/Bxg57SvTs2E/sl+o7qXiQdXBwFN4NCQvv5udpY/6m7CZLUpw2Gsaiqrrd27KlgRHN2XjBGGY2CckiuIwBfeJoCr+47SK8188zntx3lLOIhAAhBAbJ+61rFZLAGQ2s2lOsyn2rzBVLNSkPVSey6e7XJ5JAbLCEc= - - secure: bWvbs4Q5RiXEBTaHdYo1+5yD5VXXVC65iHz+tlJfoRnJtDyEIh/wFPFBYOA4AlK/bVyRvzwisCsBQVvvFBfEhbhJ5GuoX8MAhdBjJMKlz8MLLbv3DuPR9/8wLpiFqMj7nqylzuXFZHPirBBcZ6YUNiU5KCdbwIpOEJZBDgZJzFY= - - secure: m7QroskTnrgsQcbfH2xmCX/ZAEjbqR6UGO1phMqLU/bDMfwjfpo8T1vyF45vgGicD1H23S1UoqJ1Kv6AJUOmj08+S/S3qe1Yf0YUwuCyCU3iG3nB4+JcSGq+fwnlh4AS3gAyC7BsugLdrWRj9PQjrND+FYZE7cornk3QdQYrBMM= - - secure: ABYD+BJ5sy1QmYyw6So0zPMZsgk0DJuf4Di2wLd8R1a7X/vgGCXf5afF0/wQ3s9VYmWVjAge64dVhMuu5ZComS9StV9v5ai7PkdpYBGEMpHO97bUWhrxg7f6++NUHA5wA03nd2hSFqV8JH9daKW7lu6Q5DriP/sP/WyUMRlCOP0= - - secure: VA4V6s0wBVxnB7zp0qjVtyo0xBrUF+s6EMHRJu5pnfZsxCtHc1YfqcK8K101UpOO3EFDi8ndDtMl/ssrHQ54RMNI5iL+x4R2isO0ovu7dzepKIt2VbJQNSKVknZ6Yo8zeTTpTHLfSoiq1Jtgj2Z/ozZkya70DC08ocdFt2cwuJE= -cache: - directories: - - "$HOME/.gradle/caches" diff --git a/buildViaTravis.sh b/buildViaTravis.sh deleted file mode 100755 index d37d45e2..00000000 --- a/buildViaTravis.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# This script will build the project. - -if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch ['$TRAVIS_BRANCH']" - ./gradlew build -else - # Only publish when using JDK8 - if [[ "$TRAVIS_JDK_VERSION" == *"jdk8" ]]; then - if [ "$TRAVIS_TAG" == "" ]; then - echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']' - # snapshot - ./gradlew -Prelease.travisci=true -PnetflixOss.username=$NETFLIX_OSS_REPO_USERNAME -PnetflixOss.password=$NETFLIX_OSS_REPO_PASSWORD -Psonatype.signingPassword=$NETFLIX_OSS_SIGNING_PASSWORD -Prelease.scope=patch build snapshot - else - echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']' - if [[ "$TRAVIS_TAG" == *"rc."* ]]; then - # candidate - ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PnetflixOss.username=$NETFLIX_OSS_REPO_USERNAME -PnetflixOss.password=$NETFLIX_OSS_REPO_PASSWORD -Psonatype.signingPassword=$NETFLIX_OSS_SIGNING_PASSWORD candidate - else - # final - ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PnetflixOss.username=$NETFLIX_OSS_REPO_USERNAME -PnetflixOss.password=$NETFLIX_OSS_REPO_PASSWORD -Psonatype.username=$NETFLIX_OSS_SONATYPE_USERNAME -Psonatype.password=$NETFLIX_OSS_SONATYPE_PASSWORD -Psonatype.signingPassword=$NETFLIX_OSS_SIGNING_PASSWORD final - fi - fi - else - echo -e "Build Branch without publishing => Branch ['$TRAVIS_BRANCH'] JDK ['$TRAVIS_JDK_VERSION']" - ./gradlew build - fi -fi diff --git a/installViaTravis.sh b/installViaTravis.sh deleted file mode 100755 index 89461ec6..00000000 --- a/installViaTravis.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# This script will build the project. - -if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then - echo "Decrypting publishing credentials" - openssl aes-256-cbc -k "$NETFLIX_OSS_SIGNING_FILE_PASSWORD" -in secrets/signing-key.enc -out secrets/signing-key -d -fi - - - diff --git a/secrets/signing-key.enc b/secrets/signing-key.enc deleted file mode 100644 index bec61a6d6c261e25165883a1740826ec5d1157d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6800 zcmV;B8gJ!OVQh3|WM5xYxsL_Jy>KyDIo|}|<^HmRm?ZC5DR-d~?G9S~_bqfwV9Uv~ zMu>G)^m?LLCSPAGQh&c-y4(EFOh99UbhP(ijMDPb@N;~^`hh6t=V!2^yWA-^A_MnV z#hUMegZ(pIdx%?2+rSKayqBug6?q;;TUJ470SfKHY1XBLu=GHHOvs@ZO+t&xP9`bU zus%sb&k$7^%CX>^QAMtH{54$F!R&=+w#R{vDCmRlYT>q~4$y+~+-=xO7Fd;LDP>m( za=L%pB~c7R2R!CVMqw&aQ{;lvG?4kMoOXkic@U?!Y|zigQxsyoE z+Zr0Ob4^xPBbb&2|8`MXTXrog2;S*bn73^WlUmi_z;lsHpT??1VA&U>y9GQJ> zj~VytU2#t7T4%ON5?3dVyX`}DnO#|#f$%P?l!4Vvqlh_#iD<<@{U;#Pyg(piJdF$u zQ7yZE2v@dyYffWgRR1KB>=H{k*5({JlxAQZz|Yo$r5TM4u#@@e;!Fb2(lj?QI2VCW zjOAJ~C&NF^y${R_mfRNAz}rS_JdU(L`k&KU$l6L+kPqEjB&bqg-*4vCl|FsR@`f1B z+DvTE1Y+!o;bpFBxEAr(f-GNc0$5QXqW2H8yDxDiShx>1_X}U{E^Woaz(gV zhx+nn7c2!5dM~dApL2uQ$S#0gVk0VtCT$vn%RWXvrRW|EN}E90n@*r|l^lXxmb5pT zwYsjQj2;_4ZLJgwNugSxJSEumKL|C_sTM^?fT`4tR-(*L5&q9~&V$}x+bM{T6f71B zfes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