refactor: update test workflow to run library tests and enhance docum… #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| pull-requests: write | |
| packages: write | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Google auth | |
| id: auth | |
| uses: google-github-actions/auth@v2 | |
| with: | |
| token_format: access_token | |
| workload_identity_provider: projects/987979088361/locations/global/workloadIdentityPools/github/providers/github-action | |
| service_account: [email protected] | |
| create_credentials_file: true | |
| - name: Test | |
| run: cargo test --lib |