Skip to content

Commit 855d12b

Browse files
authored
Merge branch 'ThoughtWorksInc:template' into template
2 parents 805e013 + a5f7afa commit 855d12b

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

.github/workflows/scala-steward.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
on:
22
push:
33
branches-ignore:
4-
- 'update/**'
4+
- "update/**"
55
schedule:
6-
- cron: '0 0 * * 0'
6+
- cron: "0 0 * * 0"
77
workflow_dispatch:
88

99
name: Launch Scala Steward

.github/workflows/scala.yml

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,46 @@ name: Scala CI
33
on:
44
push:
55
branches-ignore:
6-
- 'update/**'
6+
- "update/**"
77
tags:
8-
- 'v*'
8+
- "v*"
99
pull_request:
1010

1111
jobs:
1212
build:
13-
1413
runs-on: ubuntu-latest
1514

1615
strategy:
1716
fail-fast: false
1817
matrix:
1918
scala:
20-
- 2.12.15
19+
- 2.12.15
2120

2221
steps:
23-
- uses: actions/checkout@v3
24-
with:
25-
fetch-depth: 0 # Need the git history for sbt-dynver to determine the version
26-
- name: Set up JDK 11
27-
uses: actions/setup-java@v3
28-
with:
29-
java-version: '11'
30-
distribution: temurin
31-
- name: Cache SBT
32-
uses: actions/cache@v3
33-
with:
34-
path: |
35-
~/.ivy2/local/
36-
~/.ivy2/cache/
37-
~/.sbt/
38-
~/.coursier/
39-
key: |
40-
${{runner.os}}-${{matrix.scala}}-${{hashFiles('**/*.sbt')}}-${{matrix.sbt-args}}
41-
${{runner.os}}-${{matrix.scala}}-${{hashFiles('**/*.sbt')}}-
42-
${{runner.os}}-${{matrix.scala}}-
43-
- name: Run tests
44-
run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} test
45-
- name: Publish to Maven Central Repository
46-
env:
47-
GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
48-
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' && github.event_name != 'pull_request' }}
49-
run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}-$$ ${{ matrix.scala }}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0 # Need the git history for sbt-dynver to determine the version
25+
- name: Set up JDK 11
26+
uses: actions/setup-java@v3
27+
with:
28+
java-version: "11"
29+
distribution: temurin
30+
- name: Cache SBT
31+
uses: actions/cache@v3
32+
with:
33+
path: |
34+
~/.ivy2/local/
35+
~/.ivy2/cache/
36+
~/.sbt/
37+
~/.coursier/
38+
key: |
39+
${{runner.os}}-${{matrix.scala}}-${{hashFiles('**/*.sbt')}}-${{matrix.sbt-args}}
40+
${{runner.os}}-${{matrix.scala}}-${{hashFiles('**/*.sbt')}}-
41+
${{runner.os}}-${{matrix.scala}}-
42+
- name: Run tests
43+
run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} test
44+
- name: Publish to Maven Central Repository
45+
env:
46+
GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
47+
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' && github.event_name != 'pull_request' }}
48+
run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}-$$ ${{ matrix.scala }}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease

0 commit comments

Comments
 (0)