Skip to content

Commit

Permalink
Add a unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Brian J. Murrell <[email protected]>
  • Loading branch information
brianjmurrell committed Sep 24, 2024
1 parent adb8b48 commit 1516057
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test
id: test
uses: ./
with:
commit_message: |
Use external action
Run-GHA: true
Skip-PR-comments: true
Test-tag: always_passes,vm
Required-githooks: true
Signed-off-by: Brian J. Murrell <[email protected]>
pragma: TEST_TAG
default: foobar
- name: Test value
run: |
set -eux
if [ '${{ steps.test.outputs.value }}' != 'always_passes,vm' ]; then
echo "Value is not 'always_passes,vm'"
exit 1
fi

0 comments on commit 1516057

Please sign in to comment.