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
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
name: Test Deploy to GitHub Pages
name: Docs Build

on:
pull_request:
branches:
- main

jobs:
test-deploy:
name: Test deployment
build:
name: Test build website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Expand All @@ -17,7 +17,5 @@ jobs:
uses: extractions/setup-just@v3
- name: Fetch justfiles
run: just fetch
- name: Lint the website
run: just docs::fmt-check
- name: Test build website
run: just docs::build
File renamed without changes.
21 changes: 21 additions & 0 deletions .github/workflows/docs-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Docs Lint

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

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Install just
uses: extractions/setup-just@v3
- name: Fetch justfiles
run: just fetch
- name: Lint docs
run: just docs::fmt-check
20 changes: 20 additions & 0 deletions .github/workflows/just-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Just Lint

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

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install just
uses: extractions/setup-just@v3
- name: Fetch justfiles
run: just fetch
- name: Lint justfiles
run: just just::fmt-check
File renamed without changes.
11 changes: 11 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Optional modules: mod? allows `just fetch` to work before .just/remote/ exists.
# Recipes below use `just` subcommands instead of dependency syntax because just

# validates dependencies at parse time, which would fail when modules aren't loaded.
mod? go '.just/remote/go.mod.just'
mod? docs '.just/remote/docs.mod.just'
mod? just '.just/remote/just.mod.just'

# --- Fetch ---

Expand All @@ -13,6 +15,8 @@ fetch:
curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/go.just -o .just/remote/go.just
curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/docs.mod.just -o .just/remote/docs.mod.just
curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/docs.just -o .just/remote/docs.just
curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/just.mod.just -o .just/remote/just.mod.just
curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/just.just -o .just/remote/just.just

# --- Top-level orchestration ---

Expand All @@ -32,6 +36,13 @@ generate:
just go::generate
just docs::generate

# Format, lint, and generate before committing
ready:
just generate
just docs::fmt
just go::fmt
just go::vet

[linux]
linux-tune:
sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
Expand Down
Loading