Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Install task otherwise mcvs-texttidy cannot be run #157

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,24 @@ runs:
# Install task and the golang version that has been defined in the go.mod
# file.
#
# yamllint disable rule:line-length
- uses: actions/[email protected]
if: inputs.testing-type == 'component' || inputs.testing-type == 'coverage' || inputs.testing-type == 'integration' || inputs.testing-type == 'lint' || inputs.testing-type == 'unit'
if: |
inputs.testing-type == 'component' ||
inputs.testing-type == 'coverage' ||
inputs.testing-type == 'integration' ||
inputs.testing-type == 'lint' ||
inputs.testing-type == 'unit'
with:
go-version-file: "go.mod"
cache: false
- name: install task
if: inputs.testing-type == 'component' || inputs.testing-type == 'coverage' || inputs.testing-type == 'integration' || inputs.testing-type == 'lint' || inputs.testing-type == 'unit'
if: |
inputs.testing-type == 'component' ||
inputs.testing-type == 'coverage' ||
inputs.testing-type == 'integration' ||
inputs.testing-type == 'lint' ||
inputs.testing-type == 'mcvs-texttidy' ||
inputs.testing-type == 'unit'
shell: bash
run: |
if ! task --version | grep -q "Task version: ${{ inputs.task-version }}"; then
Expand All @@ -64,7 +74,6 @@ runs:
git config --global url.https://${{ inputs.github-token-for-downloading-private-go-modules }}@github.com/.insteadOf https://github.com/
shell: bash
if: ${{ inputs.github-token-for-downloading-private-go-modules != '' }}
# yamllint enable rule:line-length
#
# Verify downloaded dependencies.
#
Expand Down
Loading