Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
name: Run tests
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
target:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
run-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout branch
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
with:
|
|
repository: ${{ inputs.repository }}
|
|
ref: ${{ inputs.target }}
|
|
submodules: recursive
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0
|
|
with:
|
|
dotnet-version: |
|
|
6.0.x
|
|
|
|
- name: Initialize environment
|
|
run: |
|
|
mkdir -p ~/".local/share/Daedalic Entertainment GmbH/Barotrauma"
|
|
|
|
- name: Run tests
|
|
continue-on-error: true
|
|
run: |
|
|
set +e
|
|
dotnet test LinuxSolution.sln -clp:"ErrorsOnly;Summary" --logger "trx;LogFileName=$PWD/test-results.trx"
|
|
echo "EXITCODE=$?" >> "$GITHUB_ENV"
|
|
|
|
- name: Upload test results
|
|
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
|
with:
|
|
name: test-results
|
|
path: test-results.trx
|
|
|
|
- name: Set exit code
|
|
run: exit "$EXITCODE"
|