Skip to content

Commit

Permalink
Merge pull request #1 from salesHgabriel/feature/test_workflow
Browse files Browse the repository at this point in the history
Create yaml to integration github actions
  • Loading branch information
salesHgabriel authored Dec 20, 2024
2 parents f90a5ff + 8903dd1 commit f88d048
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions SSync.LiteDB.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SSync.Server.LitebDB.Tests"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{36F96630-08DF-4386-AADB-C8E121988D5B}"
ProjectSection(SolutionItems) = preProject
build_and_test.yaml = build_and_test.yaml
.github\workflows\publish.yaml = .github\workflows\publish.yaml
readme-ptBR.md = readme-ptBR.md
readme.md = readme.md
Expand Down
46 changes: 46 additions & 0 deletions build_and_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Tests

on: pull_request

jobs:
build_teste_nuget_package:
name: Build and Teste SSync Client and Server
runs-on: ubuntu-latest
steps:

- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x

# project ssync client

- uses: actions/checkout@v4

- name: Restore Client
run: dotnet restore ./src/SSync.Client.LitebDB/SSync.Client.LitebDB.csproj

- name: Build Client
run: dotnet build --no-restore ./src/SSync.Client.LitebDB/SSync.Client.LitebDB.csproj


- name: Test Client
run: dotnet test --no-build --verbosity normal ./src/SSync.Client.LitebDB/SSync.Client.LitebDB.csproj


# end project ssync client

# project ssync server

- uses: actions/checkout@v4

- name: Restore Server
run: dotnet restore ./src/SSync.Server.LitebDB/SSync.Server.LitebDB.csproj

- name: Build Server
run: dotnet build --no-restore ./src/SSync.Server.LitebDB/SSync.Server.LitebDB.csproj

- name: Test Server
run: dotnet test --no-build --verbosity normal ./src/SSync.Server.LitebDB/SSync.Server.LitebDB.csproj

# end project ssync server

0 comments on commit f88d048

Please sign in to comment.