1
1
# This workflow performs tests in .NET.
2
2
name : test dotnet
3
3
4
- on :
4
+ on :
5
5
pull_request :
6
6
push :
7
7
branches :
12
12
# (accordingly to the "nightly" parameter).
13
13
inputs :
14
14
nightly :
15
- description : ' Run the nightly build'
15
+ description : " Run the nightly build"
16
16
required : false
17
17
type : boolean
18
18
schedule :
30
30
if : (github.event_name != 'schedule' || github.repository_owner == 'aws')
31
31
strategy :
32
32
matrix :
33
- library : [
34
- DynamoDbEncryption,
35
- ]
36
- dotnet-version : [ '6.0.x' ]
37
- os : [
38
- macos-12,
39
- ubuntu-latest,
40
- windows-latest
41
- ]
33
+ library : [DynamoDbEncryption]
34
+ dotnet-version : ["6.0.x"]
35
+ os : [macos-12, ubuntu-latest, windows-latest]
42
36
runs-on : ${{ matrix.os }}
43
37
permissions :
44
38
id-token : write
52
46
git config --global core.longpaths true
53
47
- uses : actions/checkout@v3
54
48
with :
55
- submodules : recursive
49
+ submodules : recursive
56
50
57
51
- name : Setup .NET Core SDK ${{ matrix.dotnet-version }}
58
52
uses : actions/setup-dotnet@v4
73
67
library : ${{ matrix.library }}
74
68
diff-generated-code : false
75
69
update-and-regenerate-mpl : true
76
-
77
- - name : Download Dependencies
70
+
71
+ - name : Download Dependencies
78
72
working-directory : ./${{ matrix.library }}
79
73
run : make setup_net
80
74
@@ -92,16 +86,16 @@ jobs:
92
86
# This works because `node` is installed by default on GHA runners
93
87
CORES=$(node -e 'console.log(os.cpus().length)')
94
88
make transpile_net CORES=$CORES
95
-
89
+
96
90
- name : Test ${{ matrix.library }} net48
97
91
if : matrix.os == 'windows-latest'
98
92
working-directory : ./${{ matrix.library }}
99
93
shell : bash
100
94
run : |
101
- dotnet restore runtimes/net/tests
102
- dotnet build runtimes/net/tests
103
- make test_net FRAMEWORK=net48
104
-
95
+ dotnet restore runtimes/net/tests
96
+ dotnet build runtimes/net/tests
97
+ make test_net FRAMEWORK=net48
98
+
105
99
- name : Test ${{ matrix.library }} net6.0
106
100
working-directory : ./${{ matrix.library }}
107
101
shell : bash
@@ -113,12 +107,11 @@ jobs:
113
107
else
114
108
make test_net FRAMEWORK=net6.0
115
109
fi
116
-
110
+
117
111
- name : Test Build and Pack ${{ matrix.library}}
118
112
shell : bash
119
113
if : matrix.os != 'windows-latest'
120
114
working-directory : ./${{ matrix.library }}
121
115
run : |
122
116
dotnet build runtimes/net /p:Configuration=Release -nowarn:CS0162,CS0168
123
117
dotnet pack runtimes/net/DynamoDbEncryption.csproj --no-build /p:Configuration=Release --output build
124
-
0 commit comments