mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
- Removed "/schedule/update-download-url" endpoint, this mechanism was replaced by Yandex Cloud FaaS. Ура :) - Improved schedule caching mechanism. - Added Telegram WebApp authentication support. - Reworked endpoints responses and errors mechanism. - Refactored application state management. - Make synchronous database operations, middlewares and extractors to asynchronous. - Made user password field optional to support multiple auth methods. - Renamed users table column "version" to "android_version" and made it nullable.
37 lines
832 B
YAML
37 lines
832 B
YAML
name: cargo test
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
tags-ignore: [ "release/v*" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build
|
|
run: cargo build
|
|
- name: Create .env.test
|
|
run: touch .env.test
|
|
- name: Run tests
|
|
run: cargo test
|
|
env:
|
|
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
|
|
SCHEDULE_DISABLE_AUTO_UPDATE: 1
|
|
JWT_SECRET: "test-secret-at-least-256-bits-used"
|
|
VK_ID_CLIENT_ID: 0
|
|
VK_ID_REDIRECT_URI: "vk0://vk.com/blank.html"
|
|
TELEGRAM_BOT_ID: 0
|
|
TELEGRAM_MINI_APP_HOST: example.com
|
|
TELEGRAM_TEST_DC: false
|
|
YANDEX_CLOUD_API_KEY: ""
|
|
YANDEX_CLOUD_FUNC_ID: "" |