-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.55 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
name: CI
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: |
build/gradle-jvm
~/.nuget/packages
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-Build-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', 'src/dotnet/*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :rdgen --no-daemon
- run: ./gradlew :buildPlugin -PBuildConfiguration=Release --no-daemon
- uses: mad9000/actions-find-and-replace-string@5
id: fix_branch_name
with:
source: ${{ github.ref_name }}
find: '/'
replace: '-'
- uses: actions/upload-artifact@v3
if: github.ref_name == 'master' || github.ref_name == 'dev'
with:
name: odata-cli-ui.${{ steps.fix_branch_name.outputs.value }}-${{ github.run_number }}
path: output
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: |
build/gradle-jvm
packages
~/.nuget/packages
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-Test-${{ hashFiles('gradlew.bat', 'src/dotnet/*/*.csproj', 'src/dotnet/*.props', 'gradle-wrapper.properties') }}
- run: ./gradlew :rdgen --no-daemon
- run: ./gradlew :testDotNet --no-daemon