Skip to content

fix: remove Location from Distinct if not necessary #473

fix: remove Location from Distinct if not necessary

fix: remove Location from Distinct if not necessary #473

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: Test
on:
push:
pull_request:
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
submodules: true
dotnet-version: 7.0.x
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
# Update references
- name: Git Submodule Update
run: |
git config --global user.email "[email protected]"
git config --global user.name "PoliNetwork"
git config --global pull.rebase false --allow-unrelated-histories
git pull origin ${{ steps.extract_branch.outputs.branch }} --recurse-submodules --allow-unrelated-histories
git submodule init
git submodule update --remote --recursive
git submodule update
- name: ls
run: |
ls -l
cd Lib_CSharp
ls -l
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal