-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (61 loc) · 1.96 KB
/
iris.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
66
67
68
69
70
71
72
73
name: iris
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main, 'branch-*']
paths:
- iris/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: coursier/[email protected]
with:
jvm: temurin:1.17
apps: sbt sbtn
- uses: coursier/[email protected]
- name: Install Redis
run: sudo apt-get install redis-server
- name: Install Kotlin
run: |
curl -s https://get.sdkman.io | bash
source "/home/runner/.sdkman/bin/sdkman-init.sh"
sdk install kotlin
sudo ln -s $(which kotlinc) /usr/local/bin/kotlinc
- name: Build
working-directory: iris
run: |
sbtn clean
sbtn scalafmtCheck
- name: Tests
working-directory: iris
run: sbt -DenableFatalWarnings=true -DenableCoverage=true -DgenerateStoryReport=true test:test
- name: Generate RTM
working-directory: iris
run: cs launch --channel https://raw.githubusercontent.com/tmtsoftware/osw-apps/master/apps.json rtm:0.3.0 -- target/RTM/testStoryMapping.txt ../tools/RTM/storyRequirementMapping.csv target/RTM/testRequirementsMapping.txt
- name: Generate Coverage
working-directory: iris
run: |
sbt -DenableCoverage=true coverageReport
sbtn coverageAggregate
- name: Upload RTM
if: always()
uses: actions/upload-artifact@v2
with:
name: IRIS RTM
path: iris/target/RTM
- uses: actions/upload-artifact@v2
with:
name: IRIS Coverage Report
path: iris/target/scala-2.13/scoverage-report
- name: Notify slack
if: always()
continue-on-error: true
uses: kpritam/slack-job-status-action@v1
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: ci-dev