Skip to content

🧩 Run Integrity Tests #144

🧩 Run Integrity Tests

🧩 Run Integrity Tests #144

name: 🧩 Run Integrity Tests
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 * * *' # Run every day at midnight to ensure the reverse engineered API is up to date.
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build library
run: bun run build
env:
LIBRE_LINK_EMAIL: ${{ secrets.LIBRE_LINK_EMAIL }}
LIBRE_LINK_PASSWORD: ${{ secrets.LIBRE_LINK_PASSWORD }}
LIBRE_LINK_UP_VERSION: ${{ secrets.LIBRE_LINK_UP_VERSION }}
- name: Run integrity tests # Tests the library against production libre link up API.
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
retry_wait_seconds: 120
command: bun run test-int
env:
LIBRE_LINK_EMAIL: ${{ secrets.LIBRE_LINK_EMAIL }}
LIBRE_LINK_PASSWORD: ${{ secrets.LIBRE_LINK_PASSWORD }}
LIBRE_LINK_UP_VERSION: ${{ secrets.LIBRE_LINK_UP_VERSION }}