Skip to content

Commit

Permalink
Merge branch 'master' into series/2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mijicd committed Feb 11, 2022
2 parents f0eb87f + 371d852 commit 394ddc2
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 19 deletions.
55 changes: 43 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,32 @@ jobs:
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v13
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 17
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Lint code
run: ./sbt check

mdoc:
website:
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- name: Checkout current branch
uses: actions/[email protected]
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v13
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 17
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Check Document Generation
- name: Check Website Generation
run: ./sbt docs/docusaurusCreateSite

test:
Expand All @@ -51,17 +59,19 @@ jobs:
strategy:
fail-fast: false
matrix:
java: ['adopt@1.8', '[email protected]']
java: ['8', '11', '17']
scala: ['2.12.15', '2.13.8', '3.1.0']
steps:
- name: Checkout current branch
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v13
- name: Setup Java
uses: actions/setup-[email protected]
with:
distribution: temurin
java-version: ${{ matrix.java }}
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Run tests
Expand All @@ -70,9 +80,26 @@ jobs:
if: ${{ startsWith(matrix.scala, '2') }}
run: ./sbt ++${{ matrix.scala }}! compileExamples

publishLocal:
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- name: Checkout current branch
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 8
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Check that building packages works
run: ./sbt +publishLocal

ci:
runs-on: ubuntu-20.04
needs: [lint, test]
needs: [lint, test, publishLocal, website]
steps:
- name: Aggregate job outcomes
run: echo "build succeeds"
Expand All @@ -87,8 +114,12 @@ jobs:
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v13
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 8
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Release artifacts
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Website

on:
push:
branches: [master]
branches:
- 'master'
- 'series/2.x'
release:
types:
- published
Expand All @@ -11,10 +13,16 @@ jobs:
publish:
runs-on: ubuntu-20.04
timeout-minutes: 30
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v13
- run: sbt docs/docusaurusPublishGhpages
- name: Checkout current branch
uses: actions/checkout@v2
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 17
check-latest: true
- name: Publish the site
run: ./sbt docs/docusaurusPublishGhpages
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.2.2"
version = "3.4.2"
maxColumn = 120
align.preset = most
continuationIndent.defnSite = 2
Expand Down

0 comments on commit 394ddc2

Please sign in to comment.