Skip to content
Open
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/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
day: "monday"

- package-ecosystem: "npm"
directory: "frontend/"
schedule:
interval: "weekly"
day: "monday"

- package-ecosystem: "npm"
directory: "alerts/"
schedule:
interval: "weekly"
day: "monday"

- package-ecosystem: "npm"
directory: "scripts/"
schedule:
interval: "weekly"
day: "monday"
101 changes: 101 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Deploy Documentation

on:
push:
branches: [main]
paths:
- "docs-site/**"
- ".github/workflows/deploy-docs.yml"
pull_request:
branches: [main]
paths:
- "docs-site/**"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: npm
cache-dependency-path: "docs-site/package-lock.json"

- name: Install dependencies
working-directory: docs-site
run: npm ci

- name: Build docs
working-directory: docs-site
run: npm run build
env:
VITE_ENVIRONMENT: production

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "docs-site/build"

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

cloudflare:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: github-pages
path: dist

- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: turbolong-docs
directory: dist
productionBranch: main
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

notify:
if: always() && github.event_name == 'push'
needs: [build, deploy]
runs-on: ubuntu-latest
steps:
- name: Notify Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: "Documentation build and deploy: ${{ job.status }}"
webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
fields: repo,message,commit,author
if: always()
45 changes: 45 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Rust CI

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

permissions:
contents: read

env:
CARGO_AUDIT_VERSION: "0.21.0"

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable

- name: Restore cargo-audit cache
id: cache-audit
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/cargo-audit
~/.cargo/.crates.toml
~/.cargo/.crates2.json
key: ${{ runner.os }}-cargo-audit-${{ env.CARGO_AUDIT_VERSION }}

- name: Install cargo-audit
if: steps.cache-audit.outputs.cache-hit != 'true'
run: cargo install cargo-audit --locked

- name: Run cargo-audit
run: cargo audit
continue-on-error: true

- name: Build
run: cargo build

- name: Test
run: cargo test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ src/.DS_Store
frontend/node_modules/
frontend/dist/
frontend/package-lock.json
frontend/.env.local
1 change: 1 addition & 0 deletions .kiro/specs/dependabot-cargo-audit/.config.kiro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"specId": "1dde268e-1143-41ef-a53e-6ea0c770967d", "workflowType": "requirements-first", "specType": "feature"}
Loading