Skip to content
Draft
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
31 changes: 31 additions & 0 deletions .github/workflows/redirect-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Redirect Links checks
on:
pull_request:
paths:
- 'applications/redirect-links/**'
- '.github/workflows/redirect-links.yml'
push:
branches: [main]
paths:
- 'applications/redirect-links/**'
- '.github/workflows/redirect-links.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: applications/redirect-links
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: sudo apt-get update && sudo apt-get install -y libpq-dev pkg-config
- name: Locked native checks
run: |
rustup toolchain install 1.99.0 --profile minimal --component rustfmt --component clippy
cargo fmt --check
cargo test --locked
cargo clippy --locked --all-targets -- -D warnings
cargo build --release --locked
python3 test/preflight.py "$PWD/target/release/redirect-links"
12 changes: 12 additions & 0 deletions applications/redirect-links/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PGHOST=your-cloud-host
PGPORT=5432
PGDATABASE=postgres
PGUSER=redirects_app
PGPASSWORD=replace-with-runtime-password
PGSSLROOTCERT=/private/path/ca.pem
ADMIN_USER=cloud-created-user
ADMIN_PASSWORD=cloud-created-password
MIGRATION_PASSWORD=replace-with-separate-password
NORTH_TOKEN=replace-with-32-or-more-random-characters
SOUTH_TOKEN=replace-with-another-random-token
PORT=4000
4 changes: 4 additions & 0 deletions applications/redirect-links/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target/
.env
*.pem
__pycache__/
Loading