38 lines
907 B
YAML
38 lines
907 B
YAML
name: msbuild
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: dotnet7
|
|
steps:
|
|
- name: Prep for local builds
|
|
run: echo "${LOCIP} gitea.comnenos" >> /etc/hosts
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup .NET 7.0
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: '7.0.x'
|
|
|
|
- name: Where Am I
|
|
shell: bash
|
|
working-directory: ${{runner.workspace}}
|
|
run: pwd && ls -l && dotnet --info
|
|
|
|
# - name: Install dependencies
|
|
# run: dotnet add package Newtonsoft.Json --version 12.0.1
|
|
|
|
- name: Start Web
|
|
shell: bash
|
|
working-directory: ${{runner.workspace}}
|
|
run: cd MyWebApp && nohup dotnet run &
|
|
|
|
- name: Run Playwright Tests
|
|
shell: bash
|
|
working-directory: ${{runner.workspace}}
|
|
run: cd PlaywrightTests && dotnet test
|