Skip to content

Commit

Permalink
add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed May 22, 2024
1 parent 198230a commit 4553edb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Unit tests
on: [push]

env:
CARGO_TERM_COLOR: always

jobs:
custom_test:
runs-on: ubuntu-latest
name: Test pyDataverse
env:
PORT: 8080
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: Run Dataverse Action
id: dataverse
uses: gdcc/dataverse-action@main
- name: Build
run: cargo build --verbose
- name: Run tests
env:
API_TOKEN: ${{ steps.dataverse.outputs.api_token }}
BASE_URL: ${{ steps.dataverse.outputs.base_url }}
DV_VERSION: ${{ steps.dataverse.outputs.dv_version }}
run: cargo test --verbose

0 comments on commit 4553edb

Please sign in to comment.