Skip to content

update husky script #46

update husky script

update husky script #46

Workflow file for this run

name: Test
on: push
jobs:
test:
name: Test Valid
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test Local Action
uses: ./
with:
schema-url: https://raw.githubusercontent.com/thomasmost/gha-valjean/main/schema/example.schema.json
target-dir: samples
# TODO: figure out how to actually test this case
# test_invalid:
# name: Test Invalid
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Test Local Action
# id: test_failure
# uses: ./
# with:
# schema-url: https://raw.githubusercontent.com/thomasmost/gha-valjean/main/schema/example.schema.json
# target-dir: samples_bad
# - name: Fail the job if the previous step succeeded
# if: success() || steps.test_failure.outcome == 'success'
# run: exit 1 # This will fail the job
# - name: Check if the previous step failed and pass the job if it did
# if: failure() || steps.test_failure.outcome == 'failure'
# run: echo "Expected failure occurred, job will pass." |
# exit 0