Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/publishdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: olafurpg/setup-scala@v2
with:
java-version: 1.8
- name: Cache Coursier
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: sbt-coursier-cache
- name: Cache SBT
uses: actions/cache@v1
with:
path: ~/.sbt
key: sbt-${{ hashFiles('**/build.sbt') }}
- name: Publish docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir docs/docs
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
gem install jekyll bundler
csbt docs/publishMicrosite
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ jobs:
key: sbt-${{ hashFiles('**/build.sbt') }}
- name: Checking your code format
run: csbt scalafmtCheckAll
- name: Run tests
run: |
csbt clean +scalajavatimeTestsJVM/test +scalajavatimeTestsJS/test
- name: Run test
run: csbt clean +scalajavatimeTestsJVM/test +scalajavatimeTestsJS/test
8 changes: 5 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ lazy val scalajavatimeTests = crossProject(JVMPlatform, JSPlatform)
Keys.`package` := file(""),
libraryDependencies +=
"org.scalatest" %%% "scalatest" % "3.1.1" % "test",
scalacOptions ~= (_.filterNot(Set("-Wnumeric-widen", "-Ywarn-numeric-widen", "-Ywarn-value-discard", "-Wvalue-discard")))
scalacOptions ~= (_.filterNot(
Set("-Wnumeric-widen", "-Ywarn-numeric-widen", "-Ywarn-value-discard", "-Wvalue-discard")
))
)
.jvmSettings(
// Fork the JVM test to ensure that the custom flags are set
Expand Down Expand Up @@ -249,6 +251,6 @@ lazy val docs = project
micrositeBaseUrl := "/scala-java-time",
micrositePushSiteWith := GitHub4s,
//micrositeDocumentationUrl := "/scala-java-time/docs/",
micrositeHighlightTheme := "color-brewer"
micrositeHighlightTheme := "color-brewer",
micrositeGithubToken := Option(System.getProperty("GITHUB_TOKEN"))
)