Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci
on:
push:
branches: [main]
pull_request:

permissions:
contents: read

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: rustup toolchain install stable --profile minimal --component clippy,rustfmt && rustup default stable
- run: cargo fmt --check
- run: cargo clippy --all-features --all-targets -- -D warnings
- run: cargo test --all-features
- name: Without the HTTP client
run: cargo test --no-default-features
- name: Package contents
run: cargo package --list
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Publishes to crates.io when a GitHub Release is published. The release tag
# must be v<version from Cargo.toml>, e.g. v0.1.0. Needs the
# CARGO_REGISTRY_TOKEN secret.
name: publish
on:
release:
types: [published]

permissions:
contents: read

concurrency:
group: publish-${{ github.ref }}

jobs:
crates-io:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: rustup toolchain install stable --profile minimal && rustup default stable
- name: Tag matches Cargo.toml version
run: |
version="$(cargo metadata --no-deps --format-version 1 | python3 -c 'import json,sys; print(json.load(sys.stdin)["packages"][0]["version"])')"
if [ "v$version" != "$GITHUB_REF_NAME" ]; then
echo "release tag $GITHUB_REF_NAME does not match Cargo.toml version $version"; exit 1
fi
- run: cargo test --all-features
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/release-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Posts each published release of this repo to Slack, using the shared
# workflow in hibira-io/.github. Needs the org secret SLACK_WEBHOOK_URL;
# without it the job is a no-op.
name: release-notify

on:
release:
types: [published]

permissions: {}

jobs:
slack:
uses: hibira-io/.github/.github/workflows/release-slack.yml@main
secrets: inherit
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
Cargo.lock.bak
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 0.1.0

- First release: realtime trigger, channel auth, user sign-in and webhooks; waiting room passes with Axum and Actix Web middleware; Chat API; Approvals with callback verification; Live Chat verified visitors.
Loading