Skip to content

with_options_service_account_key_file support added #583

with_options_service_account_key_file support added

with_options_service_account_key_file support added #583

Workflow file for this run

name: tests & formatting
on:
push:
pull_request:
types: [opened]
workflow_dispatch:
env:
GCP_PROJECT: latestbit
GCP_PROJECT_ID: 288860578009
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Authenticate to Google Cloud development
id: auth
uses: google-github-actions/auth@v1
if: github.ref == 'refs/heads/master'
with:
workload_identity_provider: 'projects/${{ env.GCP_PROJECT_ID }}/locations/global/workloadIdentityPools/lb-github-identity-pool/providers/lb-github-identity-pool-provider'
service_account: 'lb-github-service-account@${{ env.GCP_PROJECT }}.iam.gserviceaccount.com'
create_credentials_file: true
access_token_lifetime: '240s'
- name: 'Set up Cloud SDK'
uses: google-github-actions/setup-gcloud@v1
if: github.ref == 'refs/heads/master'
- name: 'Checking formatting and clippy'
run: cargo fmt -- --check && cargo clippy -- -Dwarnings
- name: 'Run lib tests'
run: cargo test --lib --all-features
if: github.ref != 'refs/heads/master'
- name: 'Run all tests'
run: cargo test --all-features
if: github.ref == 'refs/heads/master'