-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.4 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
name: CI
on:
push:
paths-ignore:
- 'docs/**'
- 'tools/**'
- 'docker/**.yml'
- LICENSE
- README.md
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 360
strategy:
matrix:
os: [ubuntu-latest]
java: [21]
scala: [3.4.1]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Compile
working-directory: .
run: sbt compile
- name: Caching
uses: coursier/cache-action@v6
- name: Create log file
working-directory: .
# Workaround for suddenly happen permission denied
run: mkdir logs && touch ./logs/test.log
- name: Run tests
working-directory: .
run: cp .env.example .env && sbt clean coverage testWithDb
- name: Send Coverage Report
working-directory: .
run: cp .env.example .env && sbt coverageReport coveralls
env:
# NOTE: send coverage report failed caused by `Couldn't find a repository matching this job.`
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}