Replace travis with github actions

This commit is contained in:
Michael Bull 2019-12-20 14:51:24 +00:00
parent 4cc5100c1b
commit b3dbc36b76
5 changed files with 49 additions and 25 deletions

View File

@ -6,7 +6,7 @@ end_of_line = lf
insert_final_newline = true insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
[*.{kt,kts,gradle}] [*.{kt, kts, gradle}]
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
continuation_indent_size = 4 continuation_indent_size = 4

30
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,30 @@
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.*') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle.kts') }} }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- uses: actions/setup-java@v1
with:
java-version: 1.8
- run: ./gradlew check

6
.gitignore vendored
View File

@ -7,6 +7,9 @@
# Git # Git
!.git* !.git*
# GitHub
!.github
# EditorConfig # EditorConfig
!.editorconfig !.editorconfig
@ -16,9 +19,6 @@ out/
*.ipr *.ipr
*.iws *.iws
# Travis CI
!.travis.yml
# Gradle # Gradle
build/ build/

View File

@ -1,6 +0,0 @@
language: java
jdk:
- openjdk8
notifications:
email: false

View File

@ -1,6 +1,6 @@
# kotlin-result # kotlin-result
[![Release](https://api.bintray.com/packages/michaelbull/maven/kotlin-result/images/download.svg)](https://bintray.com/michaelbull/maven/kotlin-result/_latestVersion) [![Build Status](https://travis-ci.org/michaelbull/kotlin-result.svg?branch=master)](https://travis-ci.org/michaelbull/kotlin-result) [![License](https://img.shields.io/github/license/michaelbull/kotlin-result.svg)](https://github.com/michaelbull/kotlin-result/blob/master/LICENSE) [![Release](https://api.bintray.com/packages/michaelbull/maven/kotlin-result/images/download.svg)](https://bintray.com/michaelbull/maven/kotlin-result/_latestVersion) [![Build Status](https://github.com/michaelbull/kotlin-result/workflows/ci/badge.svg)](https://github.com/michaelbull/kotlin-result/actions?query=workflow%3Aci) [![License](https://img.shields.io/github/license/michaelbull/kotlin-result.svg)](https://github.com/michaelbull/kotlin-result/blob/master/LICENSE)
[`Result<V, E>`][result] is a monad for modelling success ([`Ok`][result-ok]) or [`Result<V, E>`][result] is a monad for modelling success ([`Ok`][result-ok]) or
failure ([`Err`][result-err]) operations. failure ([`Err`][result-err]) operations.