Skip to content

Commit 6d7da02

Browse files
committed
Setup github actions
1 parent fb17536 commit 6d7da02

File tree

4 files changed

+185
-0
lines changed

4 files changed

+185
-0
lines changed

.github/stale.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 180
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 14
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
# Label to use when marking an issue as stale
9+
staleLabel: stale
10+
# Comment to post when marking an issue as stale. Set to `false` to disable
11+
markComment: >
12+
This issue has been automatically marked as stale because it has not had
13+
recent activity. It will be closed if no further activity occurs. Thank you
14+
for your contributions.
15+
# Comment to post when closing a stale issue. Set to `false` to disable
16+
closeComment: false

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: build
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'doc/**'
7+
- 'docs/**'
8+
- '*.md'
9+
- '*.yml'
10+
branches:
11+
- master
12+
- release/*
13+
14+
jobs:
15+
scala-2_12:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: checkout the repo
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Set up JDK
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: 11
27+
28+
- name: run tests
29+
run: sbt ++2.12.12 test
30+
31+
scala-2_13:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: checkout the repo
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
39+
- name: Set up JDK
40+
uses: actions/setup-java@v1
41+
with:
42+
java-version: 11
43+
44+
- name: run tests
45+
run: sbt ++2.13.3 test

.github/workflows/pr.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: pr
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- 'doc/**'
7+
- 'docs/**'
8+
- '*.md'
9+
10+
jobs:
11+
scala-2_12:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout the repo
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up JDK
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 11
23+
24+
- name: run tests
25+
run: sbt ++2.12.12 test
26+
27+
scala-2_13:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: checkout the repo
31+
uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Set up JDK
36+
uses: actions/setup-java@v1
37+
with:
38+
java-version: 11
39+
40+
- name: run tests
41+
run: sbt ++2.13.3 test

.github/workflows/release.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The release version"
8+
required: true
9+
branch:
10+
description: "The branch to release from"
11+
required: true
12+
13+
jobs:
14+
scala-2_12:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: checkout the repo
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up JDK
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: 11
26+
27+
- name: Import GPG key
28+
id: import_gpg
29+
uses: crazy-max/ghaction-import-gpg@v3
30+
with:
31+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
32+
passphrase: ${{ secrets.PGP_PASSPHRASE }}
33+
34+
- name: GPG user IDs
35+
run: |
36+
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
37+
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
38+
echo "name: ${{ steps.import_gpg.outputs.name }}"
39+
echo "email: ${{ steps.import_gpg.outputs.email }}"
40+
41+
- name: publish release
42+
run: sbt ++2.12.10 publishSigned
43+
env:
44+
RELEASE_VERSION: ${{ github.event.inputs.version }}
45+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
46+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
47+
48+
scala-2_13:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: checkout the repo
52+
uses: actions/checkout@v2
53+
with:
54+
fetch-depth: 0
55+
56+
- name: Set up JDK
57+
uses: actions/setup-java@v1
58+
with:
59+
java-version: 11
60+
61+
- name: Import GPG key
62+
id: import_gpg
63+
uses: crazy-max/ghaction-import-gpg@v3
64+
with:
65+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
66+
passphrase: ${{ secrets.PGP_PASSPHRASE }}
67+
68+
- name: GPG user IDs
69+
run: |
70+
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
71+
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
72+
echo "name: ${{ steps.import_gpg.outputs.name }}"
73+
echo "email: ${{ steps.import_gpg.outputs.email }}"
74+
75+
- name: run tests
76+
run: sbt ++2.13.3 test
77+
78+
- name: publish release
79+
run: sbt ++2.13.3 publishSigned
80+
env:
81+
RELEASE_VERSION: ${{ github.event.inputs.version }}
82+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
83+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)