Skip to content

Commit

Permalink
Updating to latest dhall definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed May 24, 2020
1 parent 94c140b commit 780aeb8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/ci.dhall
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
let GithubActions =
https://raw.githubusercontent.com/gvolpe/github-actions-dhall/feature/scala-actions/package.dhall sha256:afd0a65b78c18a6c2aef93469b6457b19559a8125576d7f49da0729d3c5a2ea6
https://raw.githubusercontent.com/regadas/github-actions-dhall/master/package.dhall sha256:40602cb9f4e3d1964e87bc88385c7946d9796b0fb1358249fce439ac9f30c726

let matrix = toMap { java = [ "8.0.242", "11.0.5" ] }

let setup =
[ GithubActions.steps.checkout
, GithubActions.steps.run
{ run = "docker-compose up -d" }
, GithubActions.steps.run { run = "docker-compose up -d" }
, GithubActions.steps.run
{ run =
''
Expand All @@ -23,20 +22,15 @@ let setup =
, key = "coursier"
, hashFile = "gha.cache.tmp"
}
, GithubActions.steps.java-setup
{ java-version = "\${{ matrix.java}}" }
, GithubActions.steps.run
{ run = "sbt buildRedis4Cats" }
, GithubActions.steps.run
{ run = "docker-compose down" }
, GithubActions.steps.olafurpg/java-setup { java-version = "\${{ matrix.java}}" }
, GithubActions.steps.run { run = "sbt buildRedis4Cats" }
, GithubActions.steps.run { run = "docker-compose down" }
]

in GithubActions.Workflow::{
, name = "Scala"
, on = GithubActions.On::{
, push = Some GithubActions.Push::{
branches = Some [ "master" ]
}
, push = Some GithubActions.Push::{ branches = Some [ "master" ] }
, pull_request = Some GithubActions.PullRequest::{=}
}
, jobs = toMap
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/release.dhall
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
let GithubActions =
https://raw.githubusercontent.com/gvolpe/github-actions-dhall/feature/scala-actions/package.dhall sha256:afd0a65b78c18a6c2aef93469b6457b19559a8125576d7f49da0729d3c5a2ea6
https://raw.githubusercontent.com/regadas/github-actions-dhall/master/package.dhall sha256:40602cb9f4e3d1964e87bc88385c7946d9796b0fb1358249fce439ac9f30c726

let setup =
[ GithubActions.steps.checkout
, GithubActions.steps.java-setup { java-version = "11" }
, GithubActions.steps.gpg-setup
, GithubActions.steps.sbt-ci-release
{ ref = "\${{ github.ref }}"
, pgpPassphrase = "\${{ secrets.PGP_PASSPHRASE }}"
, pgpSecret = "\${{ secrets.PGP_SECRET }}"
, sonatypePassword = "\${{ secrets.SONATYPE_PASSWORD }}"
, sonatypeUsername = "\${{ secrets.SONATYPE_USERNAME }}"
}
, GithubActions.steps.olafurpg/java-setup { java-version = "11" }
, GithubActions.steps.olafurpg/gpg-setup
, GithubActions.steps.olafurpg/sbt-ci-release
]

in GithubActions.Workflow::{
, name = "Release"
, on = GithubActions.On::{
, push = Some GithubActions.Push::{
, branches = Some [ "master" ]
, tags = Some ["*"]
, branches = Some [ "master" ]
, tags = Some [ "*" ]
}
}
, jobs = toMap
Expand Down

0 comments on commit 780aeb8

Please sign in to comment.