Skip to content

Bump test base/factory default images #158

Bump test base/factory default images

Bump test base/factory default images #158

Workflow file for this run

# This workflow will build and test a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build / Test
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
workflow_dispatch:
jobs:
build:
# Linux containers are not supported on the windows-latest runner.
# We use the ubuntu-latest runner to workaround this issue:
# https://github.com/actions/runner-images/issues/1143
# runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .NET 7.0
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
# The full MAUI Workload with the required target platforms is not supported on Linux.
# We build and test a solution filter without the MAUI client to workaround this issue.
#- name: Install MAUI Workload
# run: dotnet workload install maui --ignore-failed-sources
# Restore the dependencies of the EssSharp and EssSharp.Abstractions libraries.
- name: Restore EssSharp dependencies
run: dotnet restore EssSharp.slnf
# Build the EssSharp and EssSharp.Abstractions
- name: Build EssSharp
run: dotnet build EssSharp.slnf --no-restore
# Login to Docker Hub using the username and token secrets.
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Create a dedicated bridge network for the test containers.
- name: Create Docker network
run: docker network create --driver bridge standalone || true
# Test the EssSharp and EssSharp.Abstractions libraries.
- name: Test EssSharp
run: dotnet test EssSharp.slnf --no-build --nologo --logger:"console;verbosity=detailed"