Skip to content

Commit e96b0ea

Browse files
author
Sergey Dolin
committed
init
1 parent 33788ff commit e96b0ea

File tree

9 files changed

+58
-10
lines changed

9 files changed

+58
-10
lines changed

Diff for: .github/workflows/blank.yml

+22-7
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,28 @@ on:
1515

1616
jobs:
1717
self-hosted-container:
18-
runs-on: self-hosted
19-
container:
20-
image: ubuntu:20.04
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
java: [ '11' ]
22+
2123
steps:
22-
- uses: actions/setup-java@v2
24+
- name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
25+
uses: actions/checkout@v3
26+
27+
- name: Caching dependencies
28+
uses: actions/cache@v3
2329
with:
24-
java-version: '8'
30+
path: target
31+
key: ${{ runner.os }}-${{ matrix.java }}-${{ hashFiles('src/**/*.scala', 'build.sbt') }}
32+
restore-keys: ${{ runner.os }}-${{ matrix.java }}-
33+
34+
35+
- name: Set up JDK ${{ matrix.java }}
36+
uses: actions/setup-java@v3
37+
with:
38+
java-version: ${{ matrix.java }}
2539
distribution: 'zulu'
26-
java-package: jdk+fx
27-
#cache: gradle
40+
41+
- name: compile
42+
run: sbt compile

Diff for: .gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
target
2+
*.class
3+
*.iml
4+
*.ipr
5+
*.iws
6+
.idea
7+
out
8+
tags
9+
.*.swp
10+
.*.swo
11+
.bsp

Diff for: .gradle/gradle-wrapper.properties

-1
This file was deleted.

Diff for: README.md

-1
This file was deleted.

Diff for: build.sbt

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ThisBuild / scalaVersion := "2.13.12"
2+
ThisBuild / organization := "com.example"
3+
4+
lazy val hello = (project in file("."))
5+
.settings(
6+
name := "Hello",
7+
libraryDependencies ++= Seq(
8+
"org.scala-lang" %% "toolkit-test" % "0.1.7",
9+
"org.scala-lang" %% "toolkit-test" % "0.1.7" % Test
10+
)
11+
)
12+

Diff for: gradle-wrapper.properties

-1
This file was deleted.

Diff for: project/build.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=1.9.6

Diff for: src/main/scala/example/Hello.scala

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package example
2+
3+
object Hello {
4+
def main(args: Array[String]): Unit = {
5+
println("Hello")
6+
}
7+
}

Diff for: src/test/scala/example/HelloSuite.scala

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class HelloSuite extends munit.FunSuite {
2+
test("Hello should start with H") {
3+
assert("Hello".startsWith("H"))
4+
}
5+
}

0 commit comments

Comments
 (0)