Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split CI #278

Merged
merged 2 commits into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
types: [labeled]

jobs:
common:
name: common
check-lint:
name: check-lint
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || ${{ github.event_name }} == 'push'
steps:
Expand All @@ -33,6 +33,36 @@ jobs:
run: cargo fmt --all -- --check
- name: clippy check
run: cargo clippy -- -D warnings
check-deps:
name: check-deps
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || ${{ github.event_name }} == 'push'
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: cargo-deny
uses: EmbarkStudios/cargo-deny-action@v1
with:
arguments: --workspace --all-features
foundation:
name: foundation
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || ${{ github.event_name }} == 'push'
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@stable
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v0.6.0
with:
Expand All @@ -42,10 +72,6 @@ jobs:
run: cargo test --release --all-features --manifest-path foundation/auth/Cargo.toml
- name: gax-test
run: cargo test --release --all-features --manifest-path foundation/gax/Cargo.toml
- name: cargo-deny
uses: EmbarkStudios/cargo-deny-action@v1
with:
arguments: --workspace --all-features
pubsub:
name: pubsub
runs-on: ubuntu-latest
Expand Down