Skip to content

Commit d653ee0

Browse files
committed
Changed pipeline paths. Removed playwright solution. Changed target framework to net 6.0
1 parent af4005d commit d653ee0

File tree

14 files changed

+85
-41
lines changed

14 files changed

+85
-41
lines changed

.github/workflows/Autotests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
- name: Restore dependencies
2323
run: dotnet restore
2424
- name: Build
25-
working-directory: ./Behavioral.Automation.DemoScenarios
25+
working-directory: ./Behavioral.Automation.Selenium/Behavioral.Automation.DemoScenarios
2626
run: dotnet build -c Release --no-restore
2727
- name: Test
28-
working-directory: ./Behavioral.Automation.DemoScenarios
28+
working-directory: ./Behavioral.Automation.Selenium/Behavioral.Automation.DemoScenarios
2929
run: dotnet test -c Release --no-build --verbosity normal

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ jobs:
2828
run: dotnet build -c Release --no-restore
2929
- name: Get version
3030
run: |
31-
export VER=$(grep -oP '\d+\.\d+\.\d+(?=</PackageVersion>)' src/Behavioral.Automation/Behavioral.Automation.csproj)
31+
export VER=$(grep -oP '\d+\.\d+\.\d+(?=</PackageVersion>)' /Behavioral.Automation.Selenium/Behavioral.Automation/Behavioral.Automation.csproj)
3232
echo "VER=$VER" >> $GITHUB_ENV
3333
echo $VER
3434
- name: Package app
3535
run: |
36-
dotnet pack ./src/Behavioral.Automation/Behavioral.Automation.csproj \
36+
dotnet pack ./Behavioral.Automation.Selenium/Behavioral.Automation/Behavioral.Automation.csproj \
3737
--configuration Release /p:Platform=\"AnyCPU\" \
3838
/p:PackageVersion=${{ env.VER }} --output ./
3939
- name: Create Release
4040
uses: ncipollo/release-action@v1
4141
with:
4242
tag: ${{ env.VER }}
4343
artifacts: "Behavioral.Automation.${{ env.VER }}.nupkg"
44-
bodyFile: "CHANGELOG.md"
44+
bodyFile: "Behavioral.Automation.Selenium/CHANGELOG.md"
4545
token: ${{ secrets.GITHUB_TOKEN }}
4646
- name: Publish app into nuget.org
4747
env:

Behavioral.Automation.Playwright/Behavioral.Automation.Playwright/Behavioral.Automation.Playwright.sln

Lines changed: 0 additions & 16 deletions
This file was deleted.

Behavioral.Automation.Playwright/Behavioral.Automation.Playwright/Behavioral.Automation.Playwright/Services/BrowserRunner.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System.Threading.Tasks;
2+
using Microsoft.Playwright;
3+
4+
namespace Behavioral.Automation.Playwright.Services;
5+
6+
public class BrowserRunner
7+
{
8+
public async Task<IPage> LaunchBrowser()
9+
{
10+
using var playwright = await Microsoft.Playwright.Playwright.CreateAsync();
11+
await using var browser = await playwright.Chromium.LaunchAsync();
12+
var page = await browser.NewPageAsync();
13+
await page.GotoAsync("https://playwright.dev/dotnet");
14+
15+
return page;
16+
}
17+
}

0 commit comments

Comments
 (0)