Skip to content

Commit 269b863

Browse files
authored
Migrate from Travis to GitHub Actions (#114)
Add two actions: One to build the app, another to validate the checksums of the Gradle Wrapper files.
1 parent 9ad5cbf commit 269b863

File tree

4 files changed

+49
-20
lines changed

4 files changed

+49
-20
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Validate Gradle Wrapper"
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
jobs:
11+
validation:
12+
name: "Validation"
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: gradle/wrapper-validation-action@v1
17+

.github/workflows/merge-check.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Merge checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
name: Build project
14+
runs-on: ubuntu-latest
15+
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
16+
steps:
17+
- name: Checkout Repo
18+
uses: actions/checkout@v2
19+
20+
- name: Cache Gradle Files
21+
uses: actions/cache@v2
22+
with:
23+
path: |
24+
~/.gradle/caches/
25+
~/.gradle/wrapper/
26+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
27+
restore-keys: |
28+
${{ runner.os }}-gradle-
29+
30+
- name: Run Gradle tasks
31+
run: ./gradlew build

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Spyglass [![Build Status](https://travis-ci.org/linkedin/Spyglass.svg?branch=master)](https://travis-ci.org/linkedin/Spyglass)
1+
Spyglass [![Build Status](https://img.shields.io/github/workflow/status/linkedin/Spyglass/Merge%20checks)](https://img.shields.io/github/workflow/status/linkedin/Spyglass/Merge%20checks)
22
========
33

44
A powerful Android library that provides highly-customizable widgets (with smart defaults) to easily add social-media-esque mention (aka tag) support to your app

0 commit comments

Comments
 (0)