mirror of
https://github.com/dnpm-dip/mv64e-mtb-dto-go.git
synced 2025-07-02 02:42:54 +00:00
Add scheduled check for compatibility
This commit is contained in:
23
.github/workflows/compatibility.yml
vendored
Normal file
23
.github/workflows/compatibility.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: 'Check Compatibility'
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
|
||||||
|
# See: https://github.com/KohlbacherLab/dnpm-dip-api-gateway/blob/main/app/controllers/README.md#synthetic-json-data
|
||||||
|
- name: Download synthetic mtb patient record
|
||||||
|
run: curl -f https://dnpm.bwhealthcloud.de/api/mtb/fake/data/patient-record -o ./tests/mv64e-mtb-fake-patient.json
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: go test
|
Reference in New Issue
Block a user