Skip to content

Commit

Permalink
bah
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Apr 3, 2024
1 parent b89acf8 commit 606d403
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Cache Playwright dependencies
uses: actions/cache@v2
with:
path: /home/runner/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('playwrightVersion.sc') }}
restore-keys: |
playwright-${{ runner.os }}-
- name: Prepare GPG
run: |
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
gpgconf --reload gpg-agent
- name: Install Playwright
run: just setupPlaywright
- name: compile
Expand Down Expand Up @@ -69,4 +83,4 @@ jobs:
run: gpg -K

- name: Publish to Maven Central
run: mill -i mill.scalalib.PublishModule/publishAll __.publishArtifacts --sonatypeUri https://s01.oss.sonatype.org/service/local --sonatypeCreds "${{ secrets.PUBLISH_USER }}:${{ secrets.PUBLISH_PASSWORD }}" --gpgArgs "--batch,--yes,-a,-b" --readTimeout 600000 --awaitTimeout 600000 --release true --signed true
run: mill -i mill.scalalib.PublishModule/publishAll __.publishArtifacts --sonatypeUri https://s01.oss.sonatype.org/service/local --sonatypeCreds "${{ secrets.PUBLISH_USER }}:${{ secrets.PUBLISH_PASSWORD }}" --gpgArgs "--no-tty,--pinentry-mode,loopback,--batch,--yes,-a,-b" --readTimeout 600000 --awaitTimeout 600000 --release true --signed true
6 changes: 4 additions & 2 deletions build.sc
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import $ivy.`io.github.quafadas::millSite::0.0.19`
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
import $file.playwrightVersion // used to cache in GHA

import io.github.quafadas.millSite._
import mill._, scalalib._, publish._
import de.tobiasroeser.mill.vcs.version._


object project extends ScalaModule with PublishModule {
def scalaVersion = "3.4.1"
def ivyDeps = super.ivyDeps() ++ Seq(
Expand All @@ -22,8 +24,8 @@ object project extends ScalaModule with PublishModule {
object test extends ScalaTests with TestModule.Munit {
def ivyDeps = super.ivyDeps() ++ project.ivyDeps() ++ Seq(
ivy"org.scalameta::munit::1.0.0-M11",
ivy"com.microsoft.playwright:playwright:1.41.1",
ivy"com.microsoft.playwright:driver-bundle:1.41.1",
ivy"com.microsoft.playwright:playwright:${playwrightVersion.pwV}",
ivy"com.microsoft.playwright:driver-bundle:${playwrightVersion.pwV}",
ivy"com.lihaoyi::os-lib:0.9.3"
)
}
Expand Down
1 change: 1 addition & 0 deletions playwrightVersion.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
val pwV = "1.41.1"

0 comments on commit 606d403

Please sign in to comment.