Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 4c0238f

Browse files
authored
Implement github actions (#105)
* Create gradle.yml * Delete travis.yml * Update Readme Co-authored-by: Carolina Lopez <calopez@twilio.com>
1 parent 7ce6775 commit 4c0238f

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

.github/workflows/gradle.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Java Servlet CI
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths-ignore:
10+
- '**.md'
11+
- '**.json'
12+
pull_request:
13+
branches: [ master ]
14+
paths-ignore:
15+
- '**.md'
16+
- '**.json'
17+
18+
jobs:
19+
build:
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
max-parallel: 3
23+
matrix:
24+
os: [ubuntu-latest, macos-latest]
25+
java: [ 8 ]
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v2
30+
- name: Setup Java ${{ matrix.java }}
31+
uses: actions/setup-java@v1
32+
with:
33+
java-version: ${{ matrix.java }}
34+
- name: Build with Gradle
35+
run: ./gradlew build
36+
- name: Run tests
37+
run: ./gradlew test

.travis.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# TaskRouter on Servlets
66

7-
[![Build Status](https://travis-ci.org/TwilioDevEd/task-router-servlets.svg?branch=master)](https://travis-ci.org/TwilioDevEd/task-router-servlets)
7+
[![Java Servlet CI](https://github.com/TwilioDevEd/task-router-servlets/actions/workflows/gradle.yml/badge.svg)](https://github.com/TwilioDevEd/task-router-servlets/actions/workflows/gradle.yml)
88

99
Use Twilio to provide your user with multiple options through phone calls, so
1010
they can be assisted by an agent specialized in the chosen topic. This is

0 commit comments

Comments
 (0)