Skip to content

Commit

Permalink
Merge pull request #69 from little-inferno/master
Browse files Browse the repository at this point in the history
Replace Travis CI with Github Actions, add Release Drafter
  • Loading branch information
Boris authored Nov 9, 2020
2 parents 3b120c4 + 3a921b6 commit 1245f44
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 12 deletions.
20 changes: 20 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name-template: '$NEXT_PATCH_VERSION'
tag-template: '$NEXT_PATCH_VERSION'
categories:
- title: "Documentation"
labels:
- 'documentation'
- title: 'Features'
labels:
- 'new feature'
- 'enhancement'
- 'performance improvement'
- title: 'Bug Fixes'
labels:
- 'bug'
exclude-labels:
- 'skip-changelog'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
template: |
## Changes
$CHANGES
13 changes: 13 additions & 0 deletions .github/workflows/label-verifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Verify type labels"

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]

jobs:
triage:
runs-on: ubuntu-18.04
steps:
- uses: zwaldowski/match-label-action@v2
with:
allowed: 'bug, enhancement, new feature, documentation'
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 changes: 44 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Scala CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
scala: [2.11.12, 2.12.12, 2.13.3]

steps:
- uses: actions/checkout@v2

- name: Cache jabba
uses: actions/cache@v1
with:
path: ~/.jabba
key: ${{ runner.os }}-jabba-cache-${{ hashFiles('**/workflows/scala.yml') }}

- name: Cache SBT ivy cache
uses: actions/cache@v1
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}

- name: Cache SBT
uses: actions/cache@v1
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}

- uses: olafurpg/setup-scala@v5
with:
java-version: graalvm@20.0.0

- name: Test
run: sbt ++${{matrix.scala}} test
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
| CI | Release |
| --- | --- |
| [![Build Status](https://travis-ci.org/tethys-json/tethys.svg?branch=master)](https://travis-ci.org/manatki/derevo) | [![Maven Central](https://img.shields.io/maven-central/v/com.tethys-json/tethys-core_2.13.svg)](https://search.maven.org/search?q=com.tethys-json.tethys-json) |
| [![Build Status](https://github.com/tethys-json/tethys/workflows/Scala%20CI/badge.svg)](https://github.com/tethys-json/tethys/actions) | [![Maven Central](https://img.shields.io/maven-central/v/com.tethys-json/tethys-core_2.13.svg)](https://search.maven.org/search?q=com.tethys-json.tethys-json) |

# tethys
tethys is a JSON parsing/writing library for Scala
Expand Down

0 comments on commit 1245f44

Please sign in to comment.