-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use github actions for CI and release #375
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name-template: 'v$NEXT_PATCH_VERSION' | ||
tag-template: 'v$NEXT_PATCH_VERSION' | ||
template: | | ||
# What's Changed | ||
$CHANGES | ||
categories: | ||
- title: 'New' | ||
label: 'type: feature' | ||
- title: 'Bug Fixes' | ||
label: 'type: bug' | ||
- title: 'Maintenance' | ||
label: 'type: maintenance' | ||
- title: 'Documentation' | ||
label: 'type: docs' | ||
- title: 'Dependency Updates' | ||
label: 'type: dependencies' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: [master] | ||
tags: ["*"] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: olafurpg/setup-scala@v7 | ||
- uses: olafurpg/setup-gpg@v2 | ||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/coursier/v1 | ||
key: ${{ runner.os }}-coursier-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }} | ||
restore-keys: ${{ runner.os }}-coursier- | ||
- name: Cache .sbt | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }} | ||
restore-keys: ${{ runner.os }}-sbt- | ||
- name: Publish | ||
run: | | ||
csbt ci-release | ||
SCALAJS_VERSION=0.6.33 csbt ci-release | ||
env: | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: olafurpg/setup-scala@v7 | ||
with: | ||
java-version: 1.8 | ||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/coursier/v1 | ||
key: ${{ runner.os }}-coursier-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }} | ||
restore-keys: ${{ runner.os }}-coursier- | ||
- name: Cache .sbt | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }} | ||
restore-keys: ${{ runner.os }}-sbt- | ||
- name: Run tests | ||
run: | | ||
csbt +squantsJVM/compile +squantsJS/compile +squantsJS/fastOptJS | ||
csbt squantsNative/compile | ||
csbt +squantsJVM/test +squantsJS/test | ||
SCALAJS_VERSION=0.6.33 csbt clean +squantsJS/test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ import com.typesafe.sbt.osgi.SbtOsgi | |
import com.typesafe.sbt.osgi.SbtOsgi.autoImport._ | ||
|
||
object Versions { | ||
val Squants = "1.6.0" | ||
val Scala = "2.11.12" // Don't use 2.12 yet to avoid troubles with native | ||
val scalaJSVersion = | ||
Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.33") | ||
|
@@ -33,16 +32,8 @@ object Resolvers { | |
|
||
object Project { | ||
val defaultSettings = Seq( | ||
organization in ThisBuild := "org.typelevel", | ||
|
||
name := "Squants", | ||
|
||
version in ThisBuild := Versions.Squants, | ||
|
||
licenses := Seq("Apache 2.0" -> url("http://www.opensource.org/licenses/Apache-2.0")), | ||
|
||
homepage := Some(url("http://www.squants.com/")), | ||
|
||
autoAPIMappings := true, | ||
|
||
resolvers ++= Seq( | ||
|
@@ -96,44 +87,18 @@ object Compiler { | |
|
||
object Publish { | ||
val defaultSettings = Seq( | ||
publishTo := { | ||
val nexus = "https://oss.sonatype.org/" | ||
if (isSnapshot.value) | ||
Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else | ||
Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
}, | ||
|
||
publishMavenStyle := true, | ||
|
||
publishArtifact in Test := false, | ||
|
||
pomIncludeRepository := { _ => false }, | ||
|
||
pomExtra := <scm> | ||
<url>[email protected]:typelevel/squants.git</url> | ||
<connection>scm:git:[email protected]:typelevel/squants.git</connection> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>garyKeorkunian</id> | ||
<name>Gary Keorkunian</name> | ||
<url>http://www.linkedin.com/in/garykeorkunian</url> | ||
</developer> | ||
</developers> | ||
publishArtifact in Test := false | ||
) | ||
} | ||
|
||
object Tests { | ||
val defaultSettings = | ||
if (Versions.scalaJSVersion.startsWith("0.6")) { | ||
Seq( | ||
libraryDependencies ++= | ||
Dependencies.scalaTest.value ++ | ||
Dependencies.scalaCheck.value ++ | ||
Dependencies.json4s.value | ||
) | ||
} else Seq.empty | ||
Seq( | ||
libraryDependencies ++= | ||
Dependencies.scalaTest.value ++ | ||
Dependencies.scalaCheck.value ++ | ||
Dependencies.json4s.value | ||
) | ||
} | ||
|
||
object Formatting { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point, I don't think I should be listed as the only dev. Others have been contributing so much more. I'd say we should either add others to this list or perhaps drop it all together (which I think is the general recommendation).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I may do that in another PR which can be used to verify the release process