chore: refactored tests #128
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
name: macOS | |
on: | |
push: | |
paths: | |
- 'RTWLib_CLI/**' | |
- 'RTWLib_Tests/**' | |
- 'RTWLibPlus/**' | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build-macos: | |
runs-on: macos-latest | |
env: | |
Solution_Name: '${{github.workspace}}/RTWLib_CLI/RTWLib_CLI.csproj' # Replace with your solution name, i.e. MyWpfApp.sln. | |
Test_Project_Path: '${{github.workspace}}/RTWLib_Tests/RTWLib_Tests.csproj' | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install .NET Core Runtime | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Create Output Directory | |
run: mkdir -p '${{github.workspace}}/RTWLib_Tests/bin/Debug/netcoreapp8.0/resources' | |
- name: Copy Resources | |
run: cp -r ./RTWLib_Tests/resources/. ${{ github.workspace }}/RTWLib_Tests/bin/Debug/netcoreapp8.0/resources/ | |
- name: List build output | |
run: ls -R '${{github.workspace}}/RTWLib_Tests/bin/Debug/netcoreapp8.0' | |
- name: Log files | |
run: ls | |
- name: pwd | |
run: pwd | |
- name: Restore packages | |
run: dotnet restore ${{ env.Solution_Name }} | |
- name: Build with dotnet | |
run: dotnet build ${{ env.Solution_Name }} --configuration Release --no-restore | |
- name: Run Tests | |
run: dotnet test ${{ env.Test_Project_Path }} |