Skip to content

Commit

Permalink
Split CI (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshidan authored Jun 16, 2024
1 parent 6035d8b commit 929a646
Showing 1 changed file with 32 additions and 6 deletions.
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/[email protected]
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

0 comments on commit 929a646

Please sign in to comment.