Refactor #529
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |