Skip to content

Commit

Permalink
Create test-artifact.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Mar 21, 2024
1 parent 6e40bac commit e95ccaf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test artifact action
on: [push]

jobs:
custom_test:
runs-on: ubuntu-latest
name: Test Dataverse Action
env:
PORT: 8080
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: Run Dataverse Action
id: dataverse
uses: ./
with:
image_tag: "burritohasbeeneaten"
postgresql_version: 15
jvm_options: |
dataverse.api.signature-secret=eikaizieb2Oghaex
dataverse.pid.datacite.rest-api-url=https://api.datacite.org
- name: Check artifact
id: artifact-check
if: ${{ failure(steps.dataverse) }}
uses: xSAVIKx/artifact-exists-action@v0
with:
name: "logs.tgz"
- name: Set GitHub Action as success if "dataverse" has failed
if: ${{ success(steps.artifact-check) }}
run: exit 0

0 comments on commit e95ccaf

Please sign in to comment.