Files
google-apis-rs/.github/workflows/rust.yml
Sebastian Thiel 0855fc3a28 Also validate crates build without default features
Note that tests can't work without default features as they assume
them to exist, and we have to chose one, going for the one most
users will see.
2022-10-18 15:45:32 +08:00

26 lines
575 B
YAML

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
TRAVIS: true # emulate CI, some code depends on it to do less work
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: |
source ~/.profile
make test-gen
make gen-all-cli cargo-api ARGS=test
make cargo-api ARGS='check --no-default-features'
make cargo-api ARGS=doc
make docs-all
cargo test