Skip to content

Commit

Permalink
Squash merge rustls feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Proziam committed Dec 27, 2024
1 parent c6d961f commit 15ba45a
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 107 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
environment: test-environment

strategy:
matrix:
toolchain:
- stable
# - beta
# - nightly

env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_API_KEY: ${{ secrets.SUPABASE_API_KEY }}
SUPABASE_JWT_SECRET: ${{ secrets.SUPABASE_JWT_SECRET }}
DEMO_EMAIL: ${{ secrets.DEMO_EMAIL}}
DEMO_PHONE: ${{ secrets.DEMO_PHONE}}
DEMO_PASSWORD: ${{ secrets.DEMO_PASSWORD}}
DEMO_DOMAIN: ${{ secrets.DEMO_DOMAIN}}
DEMO_INVITE: ${{ secrets.DEMO_INVITE}}

steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
- name: Run default tests
run: cargo test --verbose -- --nocapture --test-threads=1
- name: Run rustls tests
run: cargo test --verbose --features use-rustls -- --nocapture --test-threads=1


Loading

0 comments on commit 15ba45a

Please sign in to comment.