-
Notifications
You must be signed in to change notification settings - Fork 74
45 lines (45 loc) · 1.39 KB
/
ci-storage.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
name: Storage Integration Service
on:
pull_request:
paths:
- 'storage/**'
- 'build.sbt'
- 'project/**'
- '.github/workflows/ci-storage.yml'
jobs:
run:
if: github.event_name == 'pull_request'
runs-on: it
timeout-minutes: 20
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'sbt'
check-latest: true
- name: StaticAnalysis
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project storage" clean scalafmtCheck Test/scalafmtCheck scalafmtSbtCheck scapegoat
- name: Tests
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project storage" clean coverage test coverageReport coverageAggregate
- name: Assembly
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project storage" assembly
review-permission-fixer:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build image
run: docker build ./storage/permissions-fixer --tag=nexus/fixer
- name: Compile and run tests
run: docker run nexus/fixer