Skip to content

Commit 3cd1c90

Browse files
committed
create CI/CD actions.
1 parent 9f2274b commit 3cd1c90

2 files changed

Lines changed: 51 additions & 4 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, windows-latest, macos-latest]
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: 10.0.x
27+
- name: Restore dependencies
28+
run: dotnet restore
29+
- name: Build
30+
run: |
31+
dotnet build --no-restore
32+
dotnet build -c Release --no-restore
33+
- name: Test
34+
run: |
35+
dotnet test --no-build --verbosity normal
36+
dotnet test -c Release --no-build --verbosity normal

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![.NET](https://github.com/silmoonsone/Silmoon.AspNetCore/actions/workflows/dotnet.yml/badge.svg)](https://github.com/silmoonsone/Silmoon.AspNetCore/actions/workflows/dotnet.yml)
2+
13
# Silmoon.AspNetCore
24

35
AspNetCore related open source projects forked from Silmoon (44876f64eeb23c16bb86aa133f7ddc5ffdb95edb).
@@ -7,14 +9,23 @@ AspNetCore related open source projects forked from Silmoon (44876f64eeb23c16bb8
79
* .net10 SDK
810

911
---
10-
Many JS calls return objects that are generally the following.
12+
13+
Many JS calls return objects that are generally the following (data is optional).
1114

1215
```json
13-
{ success: #bool; message: "#string"; data: {#object} }
16+
{ success: true; message: null; data: { user: { id: 1, name: "Silmoon Sone" } } }
17+
```
18+
19+
or
20+
21+
```json
22+
{ success: false; message: "error message"; data: null }
1423
```
15-
---
1624

25+
---
1726

1827
[User session or user authentication](README/UserAuthentication.md)
1928

20-
[Passkey authentication](README/Passkey.md)
29+
[Passkey authentication](README/Passkey.md)
30+
31+

0 commit comments

Comments
 (0)