webtestpractice/.gitea/workflows/msbuild.yaml

43 lines
1.3 KiB
YAML
Raw Normal View History

2024-02-27 12:10:41 +00:00
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
2024-02-27 12:35:37 +00:00
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
2024-02-27 12:53:02 +00:00
- name: Install PowerShell
2024-02-27 13:04:27 +00:00
run: dotnet tool install PowerShell -g --version 7.2 && export PATH="$PATH:/root/.dotnet/tools"
2024-02-27 12:53:02 +00:00
2024-02-27 12:14:44 +00:00
- name: Where Am I
shell: bash
working-directory: ${{runner.workspace}}
2024-02-27 13:07:32 +00:00
run: export PATH="$PATH:/root/.dotnet/tools" && pwd && ls -l && dotnet --info && pwsh --version
2024-02-27 12:53:02 +00:00
- name: Start Web App
2024-02-27 12:10:41 +00:00
shell: bash
2024-02-27 12:17:59 +00:00
working-directory: ${{runner.workspace}}
2024-02-27 14:28:38 +00:00
run: cd MyWebApp && ./runwebapp.sh
2024-02-27 12:10:41 +00:00
- name: Build Playwright & Add Dependencies
shell: bash
working-directory: ${{runner.workspace}}
2024-02-27 13:32:29 +00:00
run: export PATH="$PATH:/root/.dotnet/tools" && cd PlaywrightTests && dotnet build && pwsh bin/Debug/net7.0/playwright.ps1 install && pwsh bin/Debug/net7.0/playwright.ps1 install-deps
2024-02-27 12:10:41 +00:00
- name: Run Playwright Tests
shell: bash
2024-02-27 12:17:59 +00:00
working-directory: ${{runner.workspace}}
run: cd PlaywrightTests && dotnet test