Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaEiji191379 committed Jul 11, 2024
1 parent 21489a3 commit e61eb1b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/BuildTestWorkflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build and test

on:
push:
branches:
- master
- feature/**

jobs:
build&Test:

runs-on: ubuntu-latest

steps:
- name: checkout repository
uses: actions/checkout@v4

- name: set up dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.7'

- name: nuget restore
run: dotnet restore --no-cache

- name: build
run: dotnet build --no-restore --configuration Release

- name: run tests
run: dotnet test --no-restore --verbosity normal

1 change: 1 addition & 0 deletions Mohaymen.GiteaClient.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
Directory.Packages.props = Directory.Packages.props
.github\workflows\BuildTestWorkflow.yml = .github\workflows\BuildTestWorkflow.yml
EndProjectSection
EndProject
Global
Expand Down

0 comments on commit e61eb1b

Please sign in to comment.