Skip to content

Commit f5c498c

Browse files
committed
use official recommended github actions at https://www.scala-sbt.org/1.x/docs/GitHub-Actions-with-sbt.html
1 parent 9a0a239 commit f5c498c

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
name: Build
2-
on: [push]
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
35
jobs:
4-
Test:
6+
test:
57
runs-on: ubuntu-latest
68
steps:
7-
- name: Check out repository code
8-
uses: actions/checkout@v2
9-
- name: SBT Build
10-
run: sbt test
11-
shell: bash
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Setup JDK
12+
uses: actions/setup-java@v4
13+
with:
14+
distribution: temurin
15+
java-version: 21
16+
- name: Setup sbt launcher
17+
uses: sbt/setup-sbt@v1
18+
- name: Build and Test
19+
run: sbt +test

0 commit comments

Comments
 (0)