-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.22 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
name: CI
on:
pull_request:
paths-ignore:
- '*.md'
- LICENSE
push:
paths-ignore:
- '*.md'
- LICENSE
jobs:
validate:
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Spin up Test Environment
run: docker-compose up -d
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 19
- name: Setup Scala
uses: olafurpg/setup-scala@v11
with:
java-version: [email protected]
- name: Coursier cache
uses: coursier/cache-action@v6
- name: Build and Test
run: |
sbt -v -Dfile.encoding=UTF-8 +check +test
rm -rf "$HOME/.ivy2/local" || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true
- name: Package
run: |
./scripts/package.sh -app operations,notifications