Project structure #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish | |
env: | |
PROJECT_NAME: AutomatedTestingApp.csproj | |
PROJECT_PATH: ./AutomatedTestingApp/AutomatedTestingApp | |
on: | |
check_run: | |
types: [rerequested, completed] | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json: 'global.json' | |
- name: Install dependencies | |
run: dotnet restore | |
working-directory: ./AutomatedTestingApp | |
- name: Build | |
run: | | |
dotnet build ${{ env.PROJECT_NAME }} --configuration Release --no-restore | |
working-directory: ${{ env.PROJECT_PATH }} | |
- name: Publish | |
run: | | |
dotnet publish ${{ env.PROJECT_NAME }} --no-build --no-restore --configuration Release --output ./publish | |
working-directory: ${{ env.PROJECT_PATH }} | |
#TODO: Add tests here |