Skip to content

Commit

Permalink
Trying curious syntax for post-job commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Nov 16, 2022
1 parent 7f4e3e9 commit 829c298
Showing 1 changed file with 7 additions and 46 deletions.
53 changes: 7 additions & 46 deletions .github/workflows/build-and-test-orchard-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,50 +118,11 @@ jobs:
with:
submodules: 'recursive'

#- name: Set up .NET
# uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev
# with:
# dotnet-version: ${{ inputs.dotnet-version }}
- id: post-run-command
needs: non-existent-command
if: ${{ always() }}
run: echo "this thing works!"

- name: Verify that .NET packages are consolidated
if: ${{ inputs.verify-dotnet-consolidation }}
uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev
with:
directory: ${{ inputs.build-directory }}

- name: Enable Node corepack
uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev

- name: Build and Static Code Analysis
uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/OSOE-464
with:
directory: ${{ inputs.build-directory }}
verbosity: ${{ inputs.build-verbosity }}
enable-code-analysis: ${{ inputs.build-enable-code-analysis }}
enable-nuget-caching: ${{ inputs.build-enable-nuget-caching }}
enable-npm-caching: ${{ inputs.build-enable-npm-caching }}
cache-version: ${{ inputs.build-cache-version }}

- name: Set up SQL Server
if: inputs.set-up-sql-server == 'true'
uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@dev

- name: Set up Azurite
if: inputs.set-up-azurite == 'true'
uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@dev
with:
location: ${{ inputs.build-directory}}

- name: Tests
uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/OSOE-464
with:
build-directory: ${{ inputs.build-directory }}
test-verbosity: ${{ inputs.build-verbosity }}
test-filter: ${{ inputs.test-filter }}
ui-test-parallelism: ${{ inputs.ui-test-parallelism }}

- name: Cancel Workflow on Failure
if: failure() && inputs.cancel-workflow-on-failure == 'true'
uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/OSOE-464
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: non-existent-command
name: 'Running an non-existing command will fail...'
run: run something that does not exist;

0 comments on commit 829c298

Please sign in to comment.