Skip to content

Commit

Permalink
revert combining the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmost committed Sep 11, 2024
1 parent 4be2ab9 commit e5e7e50
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
name: Test
on: push
jobs:
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
continue-on-error: true
- name: Check on failures
if: (${{ success() }} || ${{ failure() }}) && (${{ steps.test_failure.outcome }} == 'failure')
run: |
echo "Validation failed as expected!"
exit 0
test:
name: Test Valid
runs-on: ubuntu-latest
Expand All @@ -29,4 +11,4 @@ jobs:
uses: ./
with:
schema-url: https://raw.githubusercontent.com/thomasmost/gha-valjean/main/schema/example.schema.json
target-dir: samples
target-dir: samples
18 changes: 18 additions & 0 deletions .github/workflows/test_failure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test
on: push
jobs:
test:
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
continue-on-error: true
- name: Check on failures
if: job.steps.test_failure.status != failure()
run: exit 1

0 comments on commit e5e7e50

Please sign in to comment.