Skip to content

Add email, admin status and name to returned JWT #18

Add email, admin status and name to returned JWT

Add email, admin status and name to returned JWT #18

Workflow file for this run

name: Cargo CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Cargo fmt
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: rustup component add --toolchain ${{ matrix.toolchain }} rustfmt
- run: cd server && cargo fmt --all --check
build:
name: Cargo build
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- nightly
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
server/target
key: ${{ runner.os }}-${{ matrix.toolchain }}-${{ matrix.target }}-cargo-${{ hashFiles('server/**/Cargo.lock') }}
- run: sudo apt install -y musl-tools
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: rustup target add --toolchain ${{ matrix.toolchain }} ${{ matrix.target }}
- run: cd server && cargo build --target ${{ matrix.target }}