Skip to content

Commit d446bb4

Browse files
Initial commit
0 parents  commit d446bb4

31 files changed

+1527
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/scripts/gpg-setup.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env sh
2+
3+
# from https://github.com/coursier/apps/blob/f1d2bf568bf466a98569a85c3f23c5f3a8eb5360/.github/scripts/gpg-setup.sh
4+
5+
echo $PGP_SECRET | base64 --decode | gpg --import --no-tty --batch --yes
6+
7+
echo "allow-loopback-pinentry" >>~/.gnupg/gpg-agent.conf
8+
echo "pinentry-mode loopback" >>~/.gnupg/gpg.conf
9+
10+
gpg-connect-agent reloadagent /bye

.github/workflows/ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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: ${{ matrix.OS }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
OS: ["ubuntu-latest", "windows-latest", "macos-latest"]
17+
SCALA_VERSION: ["3.1.0"]
18+
include:
19+
- OS: "ubuntu-latest"
20+
SCALA_VERSION: "2.12.15"
21+
- OS: "ubuntu-latest"
22+
SCALA_VERSION: "2.13.7"
23+
steps:
24+
- uses: actions/checkout@v2
25+
with:
26+
fetch-depth: 0
27+
submodules: true
28+
- uses: coursier/[email protected]
29+
- uses: coursier/[email protected]
30+
with:
31+
jvm: temurin:17
32+
- name: Test
33+
run: ./mill "__[$SCALA_VERSION].compile" && ./mill "__[$SCALA_VERSION].test"
34+
if: runner.os != 'Windows'
35+
env:
36+
SCALA_VERSION: ${{ matrix.SCALA_VERSION }}
37+
- name: Test
38+
run: ./mill.bat "__[$SCALA_VERSION].compile" && ./mill.bat "__[$SCALA_VERSION].test"
39+
shell: bash
40+
if: runner.os == 'Windows'
41+
env:
42+
SCALA_VERSION: ${{ matrix.SCALA_VERSION }}
43+
44+
format:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v2
48+
with:
49+
fetch-depth: 0
50+
submodules: true
51+
- uses: coursier/[email protected]
52+
- uses: coursier/[email protected]
53+
with:
54+
jvm: 8
55+
apps: scalafmt:3.1.1
56+
- run: scalafmt --check
57+
58+
publish:
59+
needs: [test, format]
60+
if: github.event_name == 'push'
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v2
64+
with:
65+
fetch-depth: 0
66+
submodules: true
67+
- uses: coursier/[email protected]
68+
- uses: coursier/[email protected]
69+
with:
70+
jvm: temurin:17
71+
- run: .github/scripts/gpg-setup.sh
72+
env:
73+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
74+
- name: Release
75+
run: ./mill -i publishSonatype __.publishArtifacts
76+
env:
77+
PGP_PASSWORD: ${{ secrets.PGP_PASSPHRASE }}
78+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
79+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
out/

.mill-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.9.10

.scalafmt.conf

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version = "3.1.1"
2+
3+
align.preset = more
4+
maxColumn = 100
5+
assumeStandardLibraryStripMargin = true
6+
indent.defnSite = 2
7+
indentOperator.topLevelOnly = false
8+
align.preset = more
9+
align.openParenCallSite = false
10+
newlines.source = keep
11+
newlines.beforeMultiline = keep
12+
newlines.afterCurlyLambdaParams = keep
13+
newlines.alwaysBeforeElseAfterCurlyIf = true
14+
15+
runner.dialect = scala213
16+
17+
rewrite.rules = [
18+
RedundantBraces
19+
RedundantParens
20+
SortModifiers
21+
]
22+
23+
rewrite.redundantBraces {
24+
ifElseExpressions = true
25+
includeUnitMethods = false
26+
stringInterpolation = true
27+
}
28+
29+
rewrite.sortModifiers.order = [
30+
"private", "final", "override", "protected",
31+
"implicit", "sealed", "abstract", "lazy"
32+
]
33+
34+
project.excludeFilters = [
35+
".metals"
36+
"out"
37+
]

0 commit comments

Comments
 (0)