polish a bit #31
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: Test | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - '**/*.cs' | |
| - '**/*.csproj' | |
| - '.github/workflows/test.yml' | |
| branches: | |
| - main | |
| - dev | |
| - dev/** | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| statuses: write | |
| checks: write | |
| contents: write | |
| pull-requests: write | |
| actions: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| path: ${{ github.event.repository.name }} | |
| - name: Checkout `worlds` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/worlds | |
| token: ${{ secrets.PAT }} | |
| path: worlds | |
| - name: Checkout `simulation` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/simulation | |
| token: ${{ secrets.PAT }} | |
| path: simulation | |
| - name: Checkout `unmanaged` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/unmanaged | |
| token: ${{ secrets.PAT }} | |
| path: unmanaged | |
| - name: Checkout `collections` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/collections | |
| token: ${{ secrets.PAT }} | |
| path: collections | |
| - name: Checkout `shaders` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/shaders | |
| token: ${{ secrets.PAT }} | |
| path: shaders | |
| - name: Checkout `data` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/data | |
| token: ${{ secrets.PAT }} | |
| path: data | |
| - name: Checkout `data-systems` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/data-systems | |
| token: ${{ secrets.PAT }} | |
| path: data-systems | |
| - name: Checkout `types` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/types | |
| token: ${{ secrets.PAT }} | |
| path: types | |
| - name: Setup | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Test | |
| run: dotnet test "${{ github.event.repository.name }}/tests" -c Debug --logger "trx" | |
| - name: Report | |
| uses: dorny/test-reporter@v1 | |
| if: always() | |
| with: | |
| working-directory: ${{ github.event.repository.name }} | |
| name: Report | |
| path: 'tests/TestResults/*.trx' | |
| reporter: dotnet-trx | |
| fail-on-error: false |