Skip to content

Merge branch 'hotfix/persistence' #346

Merge branch 'hotfix/persistence'

Merge branch 'hotfix/persistence' #346

Workflow file for this run

name: Rust Test
on:
push:
branches: ["main"]
tags-ignore:
- "v*.*.*"
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: davidB/rust-cargo-make@v1
- name: Run linter FOSS
env:
WORTERBUCH_LICENSE_SECRET: ${{ secrets.WORTERBUCH_LICENSE_SECRET }}
run: cargo clippy
- name: Run linter commercial
env:
WORTERBUCH_LICENSE_SECRET: ${{ secrets.WORTERBUCH_LICENSE_SECRET }}
run: cargo clippy --features=commercial
- name: Run tests FOSS
run: cargo test
- name: Run tests commercial
env:
WORTERBUCH_LICENSE_SECRET: ${{ secrets.WORTERBUCH_TEST_LICENSE_SECRET }}
WORTERBUCH_LICENSE_FILE: ./test/license
run: cargo test --features=commercial