post-merge cleanup #347
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: 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 |