forked from sbt/sbt-release
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.12 KB
/
ci.yml
File metadata and controls
35 lines (35 loc) · 1.12 KB
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
name: CI
on:
pull_request:
push:
schedule:
- cron: '0 8 * * 0'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
include:
- java: 8
sbt_version: "1.4.9"
- java: 8
- java: 21
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
java-version: ${{matrix.java}}
distribution: temurin
- uses: sbt/setup-sbt@234370af1319038bf8dc432f8a7e4b83078a1781 # v1.1.11
- uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7
- run: |
git config --global user.email "example@example.com"
git config --global user.name "example"
echo '[ui]' > "$HOME/.hgrc"
echo 'username = example <example@example.com>' >> "$HOME/.hgrc"
- run: sbt -v $(if [[ "${{matrix.sbt_version}}" != "" ]] ; then echo "^^${{matrix.sbt_version}}" ; fi) test scripted
- run: rm -rf "$HOME/.ivy2/local" || true