Skip to content

Commit 0d0aebb

Browse files
committed
fix: Updated to use jsonb type for storing session data
1 parent a725dd2 commit 0d0aebb

File tree

7 files changed

+783
-445
lines changed

7 files changed

+783
-445
lines changed

.github/workflows/check.yaml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
permissions:
2+
contents: read
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
name: check
12+
jobs:
13+
fmt:
14+
runs-on: ubuntu-latest
15+
name: stable / fmt
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
submodules: true
20+
- name: Install stable
21+
uses: dtolnay/rust-toolchain@stable
22+
with:
23+
components: rustfmt
24+
- name: cargo fmt --check
25+
run: cargo fmt --check
26+
clippy:
27+
runs-on: ubuntu-latest
28+
name: ${{ matrix.toolchain }} / clippy
29+
permissions:
30+
contents: read
31+
checks: write
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
toolchain: [stable, beta]
36+
steps:
37+
- uses: actions/checkout@v3
38+
with:
39+
submodules: true
40+
- name: Install ${{ matrix.toolchain }}
41+
uses: dtolnay/rust-toolchain@master
42+
with:
43+
toolchain: ${{ matrix.toolchain }}
44+
components: clippy
45+
- name: cargo clippy
46+
uses: actions-rs/clippy-check@v1
47+
with:
48+
token: ${{ secrets.GITHUB_TOKEN }}
49+
doc:
50+
runs-on: ubuntu-latest
51+
name: nightly / doc
52+
steps:
53+
- uses: actions/checkout@v3
54+
with:
55+
submodules: true
56+
- name: Install nightly
57+
uses: dtolnay/rust-toolchain@nightly
58+
- name: cargo doc
59+
run: cargo doc --no-deps --all-features
60+
env:
61+
RUSTDOCFLAGS: --cfg docsrs
62+
hack:
63+
runs-on: ubuntu-latest
64+
name: ubuntu / stable / features
65+
steps:
66+
- uses: actions/checkout@v3
67+
with:
68+
submodules: true
69+
- name: Install stable
70+
uses: dtolnay/rust-toolchain@stable
71+
- name: cargo install cargo-hack
72+
uses: taiki-e/install-action@cargo-hack
73+
# intentionally no target specifier; see https://github.com/jonhoo/rust-ci-conf/pull/4
74+
- name: cargo hack
75+
run: cargo hack --feature-powerset check
76+
msrv:
77+
runs-on: ubuntu-latest
78+
# we use a matrix here just because env can't be used in job names
79+
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
80+
strategy:
81+
matrix:
82+
msrv: [1.56.1] # 2021 edition requires 1.56
83+
name: ubuntu / ${{ matrix.msrv }}
84+
steps:
85+
- uses: actions/checkout@v3
86+
with:
87+
submodules: true
88+
- name: Install ${{ matrix.msrv }}
89+
uses: dtolnay/rust-toolchain@master
90+
with:
91+
toolchain: ${{ matrix.msrv }}
92+
- name: cargo +${{ matrix.msrv }} check
93+
run: cargo check

.github/workflows/release.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release-plz
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
release-plz:
14+
name: Release-plz
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
- name: Run release-plz
24+
uses: MarcoIeni/[email protected]
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)