🧩 Run Integrity Tests #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |