This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (65 loc) · 2.23 KB
/
ci.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala: [3.1.0, 2.13.8, 2.12.15]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Cache Coursier
uses: actions/cache@v4
with:
path: ~/.cache/coursier
key: sbt-coursier-${{ hashFiles('project/*.sbt', 'project/*.scala') }}
- name: Cache SBT
uses: actions/cache@v4
with:
path: ~/.sbt
key: sbt-${{ hashFiles('project/build.properties', 'project/plugins.sbt') }}
- uses: actions/setup-node@v4
with:
node-version: '14'
- run: npm install
- name: Run Tests
env:
JAVA_OPTS: -Xss4M -Xms2G -Xmx8G -XX:ReservedCodeCacheSize=512M -XX:MaxMetaspaceSize=8G -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC
JVM_OPTS: -Xss4M -Xms2G -Xmx8G -XX:ReservedCodeCacheSize=512M -XX:MaxMetaspaceSize=8G -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC
run: sbt ++${{ matrix.scala }} core/test awsDynamoDB/test awsS3/test awsCloudFrontSigner/test credentials/test all/test
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Cache Coursier
uses: actions/cache@v4
with:
path: ~/.cache/coursier
key: sbt-coursier-${{ hashFiles('project/*.sbt', 'project/*.scala') }}
- name: Cache SBT
uses: actions/cache@v4
with:
path: ~/.sbt
key: sbt-${{ hashFiles('project/build.properties', 'project/plugins.sbt') }}
- name: Check Scalafmt
env:
JAVA_OPTS: -Xss4M -Xms2G -Xmx8G -XX:ReservedCodeCacheSize=512M -XX:MaxMetaspaceSize=8G -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC
JVM_OPTS: -Xss4M -Xms2G -Xmx8G -XX:ReservedCodeCacheSize=512M -XX:MaxMetaspaceSize=8G -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck