Skip to content

Commit

Permalink
GEODE-10438: Migrate to GH Actions (#170)
Browse files Browse the repository at this point in the history
* removed Travis CI configuration
* added GH actions workflow
  • Loading branch information
sboorlagadda authored Jan 23, 2023
1 parent 438131d commit 60d0d83
Showing 1 changed file with 31 additions and 14 deletions.
45 changes: 31 additions & 14 deletions .travis.yml → .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
Expand All @@ -12,21 +13,37 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

language: java
name: develop

jdk:
- openjdk8
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

#Added to cache gradle dependencies, from the travis java manual
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
permissions:
contents: read

script:
- ssh-keygen -N "" -f ~/.ssh/id_rsa
- ./gradlew check
jobs:
check:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
distribution: ['temurin']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: '8'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: check
run: |
ssh-keygen -N "" -f ~/.ssh/id_rsa
./gradlew check --console=plain

0 comments on commit 60d0d83

Please sign in to comment.