Skip to content

Commit

Permalink
Merge pull request #198 from opentok/enhancement/switch-to-gha
Browse files Browse the repository at this point in the history
Moved over Vonage GHA and removed Travis
  • Loading branch information
dragonmantank authored Jan 25, 2021
2 parents 0a34aad + 737e12e commit f34905a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 23 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build Java CI
on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java: [ 8, 8.0.x, 9.0.x, 11.0.x, 14 ]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Checkout the repo
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Build with Gradle
run: ./gradlew build

- name: Run Codecov
uses: codecov/codecov-action@v1
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

0 comments on commit f34905a

Please sign in to comment.