-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.77 KB
/
wf-build.yaml
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
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
# https://learn.microsoft.com/en-us/dotnet/devops/create-dotnet-github-action
#
name: "📦 C4 - Dev Build"
on:
push:
branches:
- 'main'
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
env:
c4sharp_cli_version: "1.2.159-beta"
c4sharp_version: "5.2.159"
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ["6.0.x"]
java-version: ["17"]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Setup Java SDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: "microsoft" # See 'https://github.com/actions/setup-java --> Supported distributions' for available options
java-version: ${{ matrix.java-version }}
- name: Install dependencies
run: |
dotnet tool install --global c4scli --version ${{ env.c4sharp_cli_version }}
dotnet add package C4Sharp --version ${{ env.c4sharp_version }}
- name: Install dependencies
run: dotnet restore
- name: Build
# build & test // --configuration Debug
run: |
dotnet build --configuration Release --no-restore
dotnet test --no-restore --verbosity normal
dotnet run
- uses: actions/upload-artifact@v3
with:
name: "resource-files-puml"
path: ".c4s"
- uses: actions/upload-artifact@v3
with:
name: "diagram-files-c4"
path: "c4"