Skip to content

Commit eae2a30

Browse files
Switch to GitHub Actions
1 parent e6e7eb0 commit eae2a30

File tree

2 files changed

+45
-24
lines changed

2 files changed

+45
-24
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- "v*"
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
SCALA: [2.12.11, 2.13.2]
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: coursier/cache-action@v6
20+
- uses: laughedelic/coursier-setup@v1
21+
with:
22+
jvm: 8
23+
apps: sbt-launcher
24+
- run: sbt ++$SCALA_VERSION test evictionCheck compatibilityCheck
25+
env:
26+
SCALA_VERSION: ${{ matrix.SCALA_VERSION }}
27+
28+
publish:
29+
needs: test
30+
if: github.event_name == 'push'
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v2
34+
- uses: coursier/cache-action@v6
35+
- uses: laughedelic/coursier-setup@v1
36+
with:
37+
jvm: 8
38+
apps: sbt-launcher
39+
- name: Release
40+
run: sbt ci-release
41+
env:
42+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
43+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
44+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
45+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.travis.yml

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

0 commit comments

Comments
 (0)