Skip to content

Commit

Permalink
un-composite the action
Browse files Browse the repository at this point in the history
  • Loading branch information
alsi-lawr committed Aug 31, 2024
1 parent f9f226e commit 64050ba
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,14 @@ outputs:
description: 'Path to the generated code coverage report directory'

runs:
using: 'composite'
steps:
- name: Run Unit Tests in Docker
shell: bash
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-e UNIT_TEST_PROJECT=${{ inputs.project }} \
-e UNIT_TEST_EXCLUDE_FILES=${{ inputs.exclude-files }} \
-e UNIT_TEST_EXCLUDE_MODULES=${{ inputs.exclude-modules }} \
-e UNIT_TEST_COVERAGE_THRESHOLD=${{ inputs.threshold }} \
-w /workspace \
mcr.microsoft.com/dotnet/sdk:${{ inputs.dotnet-version }} \
bash -c "./src/test.sh ${{ inputs.project }}"
- name: Set coverage report path output
shell: bash
run: echo "coverage-report-path=/workspace/${{ inputs.project }}/report" >> "$GITHUB_OUTPUT"
using: 'docker'
image: 'mcr.microsoft.com/dotnet/sdk:${{ inputs.dotnet-version }}'
entrypoint: '/bin/bash'
env:
UNIT_TEST_PROJECT: ${{ inputs.project }}
UNIT_TEST_EXCLUDE_FILES: ${{ inputs.exclude-files }}
UNIT_TEST_EXCLUDE_MODULES: ${{ inputs.exclude-modules }}
UNIT_TEST_COVERAGE_THRESHOLD: ${{ inputs.threshold }}
args:
- './src/test.sh ${{ inputs.project }}'

0 comments on commit 64050ba

Please sign in to comment.