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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
scala-build-jvm-
- uses: VirtusLab/scala-cli-setup@v1
- name: Run tests
# Coverage is recorded only for production sources; test sources are
# excluded so they don't inflate the reported number.
# Coverage is recorded only for production sources; tests were previously
# measured as 100%-covered and inflated the reported number.
run: scala-cli --power test . -O -coverage-out:./.scoverage -O '-coverage-exclude-files:.*test/.*'
- name: Generate coverage
run: scala-cli .scoverage/report.sc
Expand Down Expand Up @@ -103,4 +103,4 @@ jobs:
scala-build-${{ matrix.platform }}-
- uses: VirtusLab/scala-cli-setup@v1
- name: Run tests
run: scala-cli --power test . --platform ${{ matrix.platform }} ${{ matrix.args }}
run: scala-cli --power test . --platform ${{ matrix.platform }} ${{ matrix.args }}
98 changes: 80 additions & 18 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,77 @@
"customManagers": [
{
"customType": "regex",
"description": "Scala cross-built deps (scala-cli :: / sbt %%) in project.scala and README",
"managerFilePatterns": ["/(^|/)project\\.scala$/", "/(^|/)README\\.md$/"],
"description": "Scala cross-built deps: scala-cli `::`, sbt `%%`, Mill `mvn\"...::...\"`",
"managerFilePatterns": [
"/(^|/)project\\.scala$/",
"/(^|/)README\\.md$/",
"/(^|/)build\\.sc$/",
"/(^|/)build\\.mill$/",
"/\\.mill$/"
],
"matchStrings": [
"//> using (?:test\\.)?dep (?<groupId>[\\w.-]+)::(?<artifactId>[\\w.-]+):{1,2}(?<currentValue>[\\w.-]+)",
"\"(?<groupId>[\\w.-]+)\" %% \"(?<artifactId>[\\w.-]+)\" % \"(?<currentValue>[\\w.-]+)\""
"//> using (?:test\\.)?dep \"?(?<groupId>[\\w.-]+)::(?<artifactId>[\\w.-]+):{1,2}(?<currentValue>[\\w.-]+)\"?",
"\"(?<groupId>[\\w.-]+)\" %% \"(?<artifactId>[\\w.-]+)\" % \"(?<currentValue>[\\w.-]+)\"",
"mvn\"(?<groupId>[\\w.-]+)::(?<artifactId>[\\w.-]+):(?<currentValue>[\\w.-]+)\""
],
"packageNameTemplate": "{{groupId}}:{{artifactId}}_3",
"datasourceTemplate": "sbt-package"
},
{
"customType": "regex",
"description": "Plain Maven-coordinate deps (scala-cli : / sbt %) in project.scala and README",
"managerFilePatterns": ["/(^|/)project\\.scala$/", "/(^|/)README\\.md$/"],
"description": "Plain Maven-coordinate deps: scala-cli `:`, sbt `%`, Mill `mvn\"...:...\"`",
"managerFilePatterns": [
"/(^|/)project\\.scala$/",
"/(^|/)README\\.md$/",
"/(^|/)build\\.sc$/",
"/(^|/)build\\.mill$/",
"/\\.mill$/"
],
"matchStrings": [
"//> using (?:test\\.)?dep (?<groupId>[\\w.-]+):(?<artifactId>[\\w.-]+):(?<currentValue>[\\w.-]+)",
"\"(?<groupId>[\\w.-]+)\" % \"(?<artifactId>[\\w.-]+)\" % \"(?<currentValue>[\\w.-]+)\""
"//> using (?:test\\.)?dep \"?(?<groupId>[\\w.-]+):(?<artifactId>[\\w.-]+):(?<currentValue>[\\w.-]+)\"?",
"\"(?<groupId>[\\w.-]+)\" % \"(?<artifactId>[\\w.-]+)\" % \"(?<currentValue>[\\w.-]+)\"",
"mvn\"(?<groupId>[\\w.-]+):(?<artifactId>[\\w.-]+):(?<currentValue>[\\w.-]+)\""
],
"packageNameTemplate": "{{groupId}}:{{artifactId}}",
"datasourceTemplate": "maven"
},
{
"customType": "regex",
"description": "scala-cli Scala compiler version in project.scala",
"managerFilePatterns": ["/(^|/)project\\.scala$/"],
"description": "Scala language version: scala-cli `using scala`, Mill `def scalaVersion`",
"managerFilePatterns": [
"/(^|/)project\\.scala$/",
"/(^|/)README\\.md$/",
"/(^|/)build\\.sc$/",
"/(^|/)build\\.mill$/",
"/\\.mill$/"
],
"matchStrings": [
"//> using scala (?<currentValue>[\\w.-]+)"
"//> using scala \"?(?<currentValue>[\\w.-]+)\"?",
"def scalaVersion\\s*=\\s*\"(?<currentValue>[\\w.-]+)\""
],
"depNameTemplate": "scala3",
"packageNameTemplate": "scala/scala3",
"datasourceTemplate": "github-tags",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"description": "Scala Native version: scala-cli --native-version, Mill `def scalaNativeVersion`",
"managerFilePatterns": [
"/^\\.github/workflows/[^/]+\\.ya?ml$/",
"/(^|/)build\\.sc$/",
"/(^|/)build\\.mill$/",
"/\\.mill$/"
],
"matchStrings": [
"--native-version (?<currentValue>[\\w.-]+)",
"def scalaNativeVersion\\s*=\\s*\"(?<currentValue>[\\w.-]+)\""
],
"depNameTemplate": "scala-native",
"packageNameTemplate": "scala-native/scala-native",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>.+)$"
},
{
"customType": "regex",
"description": "scala-cli --js-version in GitHub workflows",
Expand All @@ -64,15 +103,38 @@
},
{
"customType": "regex",
"description": "scala-cli --native-version in GitHub workflows",
"managerFilePatterns": ["/^\\.github/workflows/[^/]+\\.ya?ml$/"],
"description": "Mill version (//| mill-version pragma)",
"managerFilePatterns": [
"/(^|/)README\\.md$/",
"/(^|/)build\\.sc$/",
"/(^|/)build\\.mill$/",
"/\\.mill$/"
],
"matchStrings": [
"--native-version (?<currentValue>[\\w.-]+)"
"//\\|\\s*mill-version:\\s*(?<currentValue>\\S+)"
],
"depNameTemplate": "scala-native",
"packageNameTemplate": "scala-native/scala-native",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>.+)$"
"depNameTemplate": "com-lihaoyi/mill",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "scoverage version (Mill scoverageVersion)",
"managerFilePatterns": ["/(^|/)build\\.sc$/", "/(^|/)build\\.mill$/", "/\\.mill$/"],
"matchStrings": [
"def scoverageVersion\\s*=\\s*\"(?<currentValue>[\\w.-]+)\""
],
"depNameTemplate": "scoverage/scalac-scoverage-plugin",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "scalatest version (Mill scalaTestVersion)",
"managerFilePatterns": ["/(^|/)build\\.sc$/", "/(^|/)build\\.mill$/", "/\\.mill$/"],
"matchStrings": [
"def scalaTestVersion\\s*=\\s*\"(?<currentValue>[\\w.-]+)\""
],
"depNameTemplate": "org.scalatest:scalatest",
"datasourceTemplate": "maven"
}
]
}