Skip to content

Commit

Permalink
Merge pull request #12 from Azure-Samples/update-dotnet-validation
Browse files Browse the repository at this point in the history
Implement reusable workflow
  • Loading branch information
seesharprun authored Oct 11, 2023
2 parents 02014fd + 08347d4 commit 065d47c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Docker container image
name: Build Docker container image
on:
schedule:
- cron: '0 0 * * 2'
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate .NET template
name: Validate .NET solution
on:
schedule:
- cron: '0 0 * * 2'
Expand All @@ -10,16 +10,8 @@ on:
jobs:
validate-dotnet:
name: Validate .NET solution
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:7.0
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check .NET version
run: dotnet --version
- name: Build .NET solution
run: dotnet build
working-directory: ./src
- name: Check .NET code format
run: dotnet format --verify-no-changes
working-directory: ./src
uses: Azure-Samples/code-validation/.github/workflows/dotnet.yml@main
with:
version: '7.0'
working-directory: './src'
secrets: inherit

0 comments on commit 065d47c

Please sign in to comment.