mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
32 lines
703 B
YAML
32 lines
703 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 }}
|
|
JWT_SECRET: "test-secret-at-least-256-bits-used"
|
|
VKID_CLIENT_ID: 0
|
|
VKID_REDIRECT_URI: "vk0://vk.com/blank.html"
|
|
REQWEST_USER_AGENT: "Dalvik/2.1.0 (Linux; U; Android 6.0.1; OPPO R9s Build/MMB29M)" |