Skip to content

FX.Tests: move from net7.0 to net8.0 #73

FX.Tests: move from net7.0 to net8.0

FX.Tests: move from net7.0 to net8.0 #73

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
buildAndTest:
name: Build and Run Tests
runs-on: ubuntu-22.04
container:
# TODO: move to 24.04 as soon as it is published in Apr2024
image: "ubuntu:23.10"
steps:
- uses: actions/checkout@v2
- name: Install required dependencies
run: |
apt update
apt install --yes sudo
sudo apt install --yes --no-install-recommends git
# workaround for https://github.com/actions/runner/issues/2033
git config --global --add safe.directory '*'
- name: Setup .NET
run: |
# We need to install `ca-certificates`, otherwise we get these errors in the CI:
# Unable to load the service index for source https://api.nuget.org/v3/index.json.
# The SSL connection could not be established, see inner exception.
# The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
apt install --yes --no-install-recommends ca-certificates
apt install --yes --no-install-recommends dotnet8
- name: Restore nuget dependencies
run: dotnet restore
- name: Compile the main solution
run: dotnet build --no-restore
- name: Install and start Redis
run: |
sudo apt install --yes --no-install-recommends redis-server
redis-server --daemonize yes
- name: Run tests
run: dotnet test