Skip to content

Commit

Permalink
Create build-umbraco.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
liamlaverty committed Feb 1, 2024
1 parent 85bd9d1 commit 6801d0b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-umbraco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET Umbraco build

on:
push:
branches: [ "main", "stage", "develop" ]
pull_request:
branches: [ "main", "develop" ]

jobs:
build:

runs-on: ubuntu-latest
env:
working-directory: './ContainerRegistryTest'

steps:
- name: checkout source
uses: actions/checkout@v3

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

- name: Restore dependencies
working-directory: ${{env.working-directory}}
run: dotnet restore

- name: Build
working-directory: ${{env.working-directory}}
run: dotnet build --no-restore

- name: Test
working-directory: ${{env.working-directory}}
run: dotnet test --no-build --verbosity normal

0 comments on commit 6801d0b

Please sign in to comment.