Skip to content

Commit

Permalink
ci: update workflow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Sep 16, 2022
1 parent fab20eb commit 01c8d25
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/danger-workflow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ on:
jobs:
danger:
uses: ./.github/workflows/danger.yml

test-outputs:
runs-on: ubuntu-latest
needs: danger
steps:
- run: "[[ '${{ needs.danger.outputs.outcome }}' == 'success' ]]"
7 changes: 6 additions & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Runs DangerJS with a pre-configured set of rules on a Pull Request.
on:
workflow_call
workflow_call:
outputs:
outcome:
description: Whether the Danger run finished successfully. Possible values are success, failure, cancelled, or skipped.
value: ${{ jobs.danger.steps.danger.outcome }}

jobs:
danger:
Expand All @@ -15,6 +19,7 @@ jobs:

# Using a pre-built docker image in GitHub container registry instaed of NPM to reduce possible attack vectors.
- name: Run DangerJS
id: danger
run: |
docker run \
--volume ${{ github.workspace }}:/github/workspace \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/updater-scripts-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This isn't a reusable workflow but an actual CI action for this repo itself - to test scripts.
name: Update Script Tests
name: Updater Script Tests

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/updater-workflow-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This isn't a reusable workflow but an actual CI action for this repo itself - to test the workflows.
name: Update Workflow Tests
name: Updater Workflow Tests

on:
push:
Expand Down

0 comments on commit 01c8d25

Please sign in to comment.