Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
volllly committed Feb 17, 2025
1 parent ea8bb3c commit a855c55
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/package-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: ./.github/workflows/queue-package.yml
with:
package: queue/src/fiskaltrust.Middleware.Queue.${{ github.event.client_payload.slash_command.args.unnamed.arg2 }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}

finish:
needs:
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/queue-acceptance-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: Queue Acceptance Tests

on:
workflow_call:
workflow_dispatch:
inputs:
ref:
type: string
default: main

workflow_call:
inputs:
ref:
type: string
required: true

jobs:
acceptance-test:
Expand All @@ -23,6 +32,8 @@ jobs:
- fiskaltrust.Middleware.Queue.AcceptanceTest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- name: AzureTableStorage Acceptance Tests
uses: ./.github/actions/test
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/queue-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ name: Queue CI

on:
workflow_call:
inputs:
ref:
type: string
required: true
workflow_dispatch:
inputs:
ref:
type: string
required: true
pull_request:
paths:
- .github/workflows/**
Expand All @@ -16,6 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
fetch-depth: 0
filter: tree:0

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/queue-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
package:
type: string
required: true
ref:
type: string
required: true

jobs:
test:
name: Package
Expand All @@ -16,6 +20,7 @@ jobs:
with:
fetch-depth: 0
filter: tree:0
ref: ${{ inputs.ref }}

- uses: ./.github/actions/build
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ jobs:
needs: start
if: github.event.client_payload.slash_command.args.unnamed.arg1 == 'queue' && github.event.client_payload.slash_command.args.unnamed.arg2 == 'acceptance-tests'
uses: ./.github/workflows/queue-acceptance-tests.yml
with:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

queue-build:
needs: start
if: github.event.client_payload.slash_command.args.unnamed.arg1 == 'queue' && github.event.client_payload.slash_command.args.unnamed.arg2 == 'ci'
uses: ./.github/workflows/queue-build.yml
with:
ref: ${{ github.event.client_payload.pull_request.head.ref }}

finish:
needs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/slash-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: peter-evans/slash-command-dispatch@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-type: pull-request
commands: |
run
package

0 comments on commit a855c55

Please sign in to comment.