Add DNS oracle protocol #677
This file contains hidden or 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
| name: .NET Core Test | |
| on: pull_request | |
| env: | |
| DOTNET_VERSION: 10.0.x | |
| jobs: | |
| Test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Check format | |
| if: runner.os == 'Linux' | |
| run: dotnet format --no-restore --verify-no-changes --verbosity diagnostic | |
| - name: Build CLI | |
| if: runner.os == 'Linux' | |
| run: | | |
| dotnet publish -o ./out -c Release src/Neo.CLI | |
| find ./out -name 'config.json' | xargs perl -pi -e 's|LevelDBStore|MemoryStore|g' | |
| - name: Install dependencies | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get install libleveldb-dev expect | |
| - name: Run tests with expect | |
| if: runner.os == 'Linux' | |
| run: expect ./.github/workflows/test-neo-cli.expect | |
| - name: Run Unit Tests | |
| if: runner.os == 'Windows' | |
| run: | | |
| forfiles /p tests /m *.csproj /s /c "cmd /c dotnet add @PATH package coverlet.msbuild" | |
| dotnet test /p:CollectCoverage=true /p:CoverletOutput='${{ github.workspace }}/TestResults/coverage/' /p:MergeWith='${{ github.workspace }}/TestResults/coverage/coverage.json' /p:CoverletOutputFormat=lcov%2cjson -m:1 | |
| - name: Codecov | |
| if: runner.os == 'Windows' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ${{ github.workspace }}/TestResults/coverage/coverage.info | |
| fail_ci_if_error: false |