Skip to content

Run tests on CI

Run tests on CI #3

Workflow file for this run

name: check
on:
push:
branches:
- master # todo remove
workflow_dispatch:
schedule:
# every day at 03:45 UTC
- cron: "45 03 * * *"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
GITHUB_APP_ID: ${{ secrets.MY_GITHUB_APP_ID }}
GITHUB_APP_PRIVATE_KEY: ${{ secrets.MY_GITHUB_APP_PRIVATE_KEY }}
RUST_BACKTRACE: 1