Merge pull request #42 from privy-io/jagtej/verify-rpc-response-types #129
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: CI | |
| on: | |
| push: | |
| branches: [ main, arlyon/next ] | |
| pull_request: | |
| branches: [ main, arlyon/next ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| PRIVY_TEST_APP_ID: ${{ secrets.PRIVY_TEST_APP_ID }} | |
| PRIVY_TEST_APP_SECRET: ${{ secrets.PRIVY_TEST_APP_SECRET }} | |
| PRIVY_TEST_JWT_PRIVATE_KEY: ${{ secrets.PRIVY_TEST_JWT_PRIVATE_KEY }} | |
| PRIVY_TEST_URL: ${{ secrets.PRIVY_TEST_URL }} | |
| # staging authorization flow is very flaky. we'll remove this eventually | |
| MARK_FLAKY_TESTS_RETRIES: 20 | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install toolchains | |
| uses: jdx/mise-action@v2 | |
| - name: Cache cargo registry | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Cache cargo index | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Cache cargo build | |
| uses: actions/cache@v3 | |
| with: | |
| path: target | |
| key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Fetch openapi | |
| run: mise pull-openapi | |
| - name: Run tests | |
| run: cargo test --verbose | |
| - name: Run clippy | |
| run: cargo clippy --all-targets --all-features -- -D warnings |