Skip to content

Commit

Permalink
Merge pull request #4 from JR-1991/add-test-workflow
Browse files Browse the repository at this point in the history
Add testing workflow
  • Loading branch information
JR-1991 authored May 22, 2024
2 parents 198230a + ee0d2c5 commit e28d45c
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: Dataverse Tests
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 e28d45c

Please sign in to comment.