Skip to content

Commit

Permalink
Merge pull request #1 from sanelli/SetupGithubActionsForPR
Browse files Browse the repository at this point in the history
Add PR GitHub action
  • Loading branch information
sanelli committed Jul 30, 2023
2 parents 5a0a09b + cf88bdf commit 8f97dc8
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/merge_and_pull_requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Merge and pull requests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Test and code coverage
shell: pwsh
run: ./Scripts/RunTests.ps1
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sanelli
2 changes: 1 addition & 1 deletion Todo.Analyzer.Package/Todo.Analyzer.Package.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<PropertyGroup>
<PackageId>Todo.Analyzer</PackageId>
<PackageVersion>1.0.0-alpha.1</PackageVersion>
<PackageVersion>1.0.0</PackageVersion>
<Authors>Stefano Anelli</Authors>
<PackageLicenseUrl>https://github.com/sanelli/Todo.Analyzer/blob/main/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/sanelli/Todo.Analyzer</PackageProjectUrl>
Expand Down
6 changes: 6 additions & 0 deletions Todo.Analyzer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
stylecop.json = stylecop.json
AnalyzerReleases.Shipped.md = AnalyzerReleases.Shipped.md
AnalyzerReleases.Unshipped.md = AnalyzerReleases.Unshipped.md
CODEOWNERS = CODEOWNERS
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{1688995C-08AD-4956-99DC-D5975C3BFEA9}"
Expand All @@ -33,6 +34,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{A2BB
Scripts\RunTests.ps1 = Scripts\RunTests.ps1
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub", "GitHub", "{AB8DDBFC-002C-48E2-AB03-71507DE18681}"
ProjectSection(SolutionItems) = preProject
.github\workflows\merge_and_pull_requests.yml = .github\workflows\merge_and_pull_requests.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down

0 comments on commit 8f97dc8

Please sign in to comment.