Skip to content

Bump jdx/mise-action from 2 to 3 #100

Bump jdx/mise-action from 2 to 3

Bump jdx/mise-action from 2 to 3 #100

Workflow file for this run

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@v3
- 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