Skip to content

Merge branch 'bcgov:dev' into stairaku-actions-1 #19

Merge branch 'bcgov:dev' into stairaku-actions-1

Merge branch 'bcgov:dev' into stairaku-actions-1 #19

Workflow file for this run

# 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: smoke test (.NET)
on:
#push:
# branches: [master, dev, test]
#pull_request:
# branches: [master, dev, test]
jobs:
smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
#- name: Installing Edge Browser (alternative step)
# run: |
# wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg
# sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge.list'
# sudo apt update
# sudo apt install -y microsoft-edge-stable
- name: Install Chrome Browser
run: |
sudo apt update
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome-stable_current_amd64.deb
# Edge Browser setup - missing dependencies
#- uses: browser-actions/setup-edge@v1
#- name: Print Edge version
# run: (Get-Item (Get-Command msedge).Source).VersionInfo.ProductVersion
- name: Restore dependencies
run: dotnet restore ./testing/PIMS.Tests.Automation/PIMS.Tests.Automation.sln
- name: Build
run: dotnet build ./testing/PIMS.Tests.Automation/PIMS.Tests.Automation.sln --no-restore
- name: Test
run: dotnet test ./testing/PIMS.Tests.Automation/PIMS.Tests.Automation.csproj --no-build --verbosity normal --filter Category=Smoke-Test