mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-01 17:14:19 +01:00
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.
26 lines
575 B
YAML
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
|