-
Notifications
You must be signed in to change notification settings - Fork 29
52 lines (43 loc) · 968 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Cucumber Scala CI
on:
workflow_call:
pull_request:
branches:
- main
push:
branches:
- main
- renovate/**
jobs:
build:
name: Build and test
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
java:
- 8.0
- 11
- 17
- 21
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Cache sbt
uses: actions/cache@v4
with:
path: |
~/.sbt
~/.ivy2/cache
~/.cache/coursier
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- uses: sbt/setup-sbt@v1
- name: Formatting check
run: sbt scalafmtCheckAll
- name: Run tests
run: sbt +compile +test