Skip to content

Commit

Permalink
ci: add tests for slugify action
Browse files Browse the repository at this point in the history
  • Loading branch information
neilime committed Mar 21, 2023
1 parent 7d29995 commit b908794
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/__shared-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
secrets:
github-token: ${{ secrets.github-token }}

test-matrix-outputs:
name: Test get & set matrix outputs actions
test-action-matrix-outputs:
needs: linter
uses: ./.github/workflows/__test-matrix-outputs.yml
uses: ./.github/workflows/__test-action-matrix-outputs.yml

test-action-slugify:
needs: linter
uses: ./.github/workflows/__test-action-slugify.yml
File renamed without changes.
22 changes: 22 additions & 0 deletions .github/workflows/__test-action-slugify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Internal - Test for slugify action

on:
workflow_call:

jobs:
set-and-get-matrix-outputs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- id: slugify
uses: ./actions/slugify
with:
value: test content

- name: Check slugify outputs
run: |
if [ "${{ steps.slugify.outputs.result }}" != 'test-content' ]; then
echo "Slugify outputs result is not valid"
exit 1
fi

0 comments on commit b908794

Please sign in to comment.