Skip to content

Commit cf5b4f1

Browse files
committed
Migrate to GitHub Actions
1 parent dd714a2 commit cf5b4f1

File tree

3 files changed

+52
-22
lines changed

3 files changed

+52
-22
lines changed

.github/workflows/ci.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
build-test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
scala: ['2.12.14', '2.13.6']
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Setup Scala
16+
uses: olafurpg/setup-scala@v10
17+
with:
18+
java-version: "[email protected]"
19+
- name: Coursier cache
20+
uses: coursier/cache-action@v5
21+
- name: Build and test
22+
if: ${{ matrix.scala == '3.0.0' }}
23+
run: sbt ++${{ matrix.scala }} clean test
24+
- name: Build and test
25+
if: ${{ matrix.scala != '3.0.0' }}
26+
run: sbt ++${{ matrix.scala }} clean coverage test coverageReport && bash <(curl -s https://codecov.io/bash)

.github/workflows/release.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: ['master']
5+
release:
6+
types:
7+
- published
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Setup Scala
17+
uses: olafurpg/setup-scala@v10
18+
with:
19+
java-version: "[email protected]"
20+
- uses: olafurpg/setup-gpg@v3
21+
- run: sbt ci-release
22+
env:
23+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
24+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
25+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
26+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.travis.yml

-22
This file was deleted.

0 commit comments

Comments
 (0)