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
2 changes: 1 addition & 1 deletion .github/dependency-policy.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version = 2
mode = "auto"
ci_workflow = "build-and-test.yml"
required_checks = ["Build and test"]
required_checks = ["Build and test (Linux-x86_64)", "Build and test (Linux-arm64)", "Build and test (Darwin-x86_64)", "Build and test (Darwin-arm64)", "Build and test (Windows-x86_64)", "Build and test (Windows-arm64)"]
max_group_size = 10
managed_dependencies = ["aviorstudio/gdam-actions/*", "nicodes/komizo-actions/*", "nicodes/komizo/*", "nicodes/tools/*"]
sensitive_dependencies = ["*clerk*", "*pocketbase*", "*crypto*", "*jsonwebtoken*", "*jose*", "*oauth*", "*openid*", "*passport*", "*bcrypt*", "*argon2*", "@noble/*", "*prisma*", "*drizzle*", "*migrate*", "modernc.org/sqlite", "github.com/jackc/pgx/*", "github.com/go-sql-driver/mysql", "go.mongodb.org/mongo-driver/*"]
Expand Down
93 changes: 73 additions & 20 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ run-name: "Build and test · ${{ github.event.pull_request.number && format('PR
types: [checks_requested]
push:
branches: [main]
paths:
- '.github/workflows/build-and-test.yml'
- 'cookbook.toml'
- 'mise.toml'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '**/.cargo/config.toml'
workflow_dispatch:
inputs:
source:
Expand All @@ -23,29 +30,75 @@ concurrency:
group: ci-${{ github.ref }}-${{ inputs.source || 'current' }}
cancel-in-progress: true
jobs:
validate:
name: Test
uses: nicodes/cookbook/.github/workflows/build-and-test-native.yml@4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
build-test:
name: Build and test (${{ matrix.platform }}-${{ matrix.arch }})
strategy:
fail-fast: false
matrix:
include:
- id: 1-Linux-x86_64
runner: ubuntu-24.04
platform: Linux
arch: x86_64
target: x86_64-unknown-linux-musl
timeout_minutes: 55
- id: 1-Linux-arm64
runner: ubuntu-24.04-arm
platform: Linux
arch: arm64
target: aarch64-unknown-linux-musl
timeout_minutes: 25
- id: 1-Darwin-x86_64
runner: macos-15-intel
platform: Darwin
arch: x86_64
target: x86_64-apple-darwin
timeout_minutes: 25
- id: 1-Darwin-arm64
runner: macos-26
platform: Darwin
arch: arm64
target: aarch64-apple-darwin
timeout_minutes: 25
- id: 1-Windows-x86_64
runner: windows-2025
platform: Windows
arch: x86_64
target: x86_64-pc-windows-msvc
timeout_minutes: 25
- id: 1-Windows-arm64
runner: windows-11-arm
platform: Windows
arch: arm64
target: aarch64-pc-windows-msvc
timeout_minutes: 25
runs-on: ${{ matrix.runner }}
timeout-minutes: ${{ matrix.timeout_minutes }}
permissions:
contents: read
actions: read
pull-requests: read
with:
cookbook-ref: ${{ inputs.cookbook || '4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf' }}
source: ${{ inputs.source || github.sha }}
runner: ubuntu-24.04
timeout-minutes: 30
build-test:
name: Build and test
if: always()
needs: [validate]
runs-on: ubuntu-24.04
timeout-minutes: 1
permissions: {}
env:
COOKBOOK_VALIDATION_TIMEOUT: '30'
COOKBOOK_CANDIDATE_COMMIT: ${{ github.event.pull_request.head.sha || inputs.source || github.sha }}
steps:
- name: Require the complete current source validation
timeout-minutes: 1
uses: nicodes/cookbook/ci-result@4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
- name: Prepare
timeout-minutes: 20
uses: nicodes/cookbook/prepare@2e53a2dc1a80631580cfba8b3611219de83c7ce1
with:
cookbook-ref: ${{ inputs.cookbook || '2e53a2dc1a80631580cfba8b3611219de83c7ce1' }}
source: ${{ inputs.source || github.sha }}
target: ${{ matrix.target }}
- name: Build
timeout-minutes: ${{ matrix.timeout_minutes }}
uses: nicodes/cookbook/build@2e53a2dc1a80631580cfba8b3611219de83c7ce1
- name: Test
timeout-minutes: ${{ matrix.timeout_minutes }}
uses: nicodes/cookbook/test@2e53a2dc1a80631580cfba8b3611219de83c7ce1
- name: Finish
if: always()
timeout-minutes: 5
uses: nicodes/cookbook/finish@2e53a2dc1a80631580cfba8b3611219de83c7ce1
with:
event-name: ${{ github.event_name }}
needs: ${{ toJSON(needs) }}
status: ${{ job.status }}
entry: ${{ matrix.id }}
4 changes: 2 additions & 2 deletions .github/workflows/dependency-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
request:
name: Review dependencies
if: github.event_name != 'workflow_run' || github.event.workflow_run.event == 'pull_request'
uses: nicodes/cookbook/.github/workflows/dependency-policy.yml@4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
uses: nicodes/cookbook/.github/workflows/dependency-policy.yml@2e53a2dc1a80631580cfba8b3611219de83c7ce1
permissions:
contents: write
pull-requests: read
actions: write
checks: read
statuses: read
with:
cookbook-ref: 4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
cookbook-ref: 2e53a2dc1a80631580cfba8b3611219de83c7ce1
runner: ubuntu-24.04
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
contents: read
actions: read
pull-requests: read
uses: nicodes/cookbook/.github/workflows/prepare-cli-release.yml@4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
uses: nicodes/cookbook/.github/workflows/prepare-cli-release.yml@2e53a2dc1a80631580cfba8b3611219de83c7ce1
with:
cookbook-ref: 4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
cookbook-ref: 2e53a2dc1a80631580cfba8b3611219de83c7ce1
bump: ${{ inputs.bump }}
runner: ubuntu-24.04
timeout-minutes: 30
Expand All @@ -42,7 +42,7 @@ jobs:
artifact: ${{ steps.accepted.outputs.artifact-id }}
env:
SOURCE_SHA: ${{ github.sha }}
COOKBOOK_SHA: 4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
COOKBOOK_SHA: 2e53a2dc1a80631580cfba8b3611219de83c7ce1
RELEASE_TAG: ${{ needs.prepare.outputs.tag }}
GH_TOKEN: ${{ github.token }}
steps:
Expand All @@ -56,7 +56,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ github.sha }}
fetch-depth: 0
fetch-depth: 1
persist-credentials: false
- name: Prepare the provider interpreter without caller configuration
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
Expand All @@ -67,13 +67,13 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
repository: nicodes/cookbook
ref: 4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
ref: 2e53a2dc1a80631580cfba8b3611219de83c7ce1
path: .artifacts/recipe-sdks/_cookbook
persist-credentials: false
- name: Prepare separate immutable Cookbook and Tools sources
uses: ./.artifacts/recipe-sdks/_cookbook/sdk-dependencies
with:
cookbook-ref: 4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
cookbook-ref: 2e53a2dc1a80631580cfba8b3611219de83c7ce1
- name: Download this execution's complete source acceptance
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333
with:
Expand Down Expand Up @@ -105,8 +105,8 @@ jobs:
contents: write
actions: read
attestations: read
uses: nicodes/cookbook/.github/workflows/publish-cli.yml@4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
uses: nicodes/cookbook/.github/workflows/publish-cli.yml@2e53a2dc1a80631580cfba8b3611219de83c7ce1
with:
cookbook-ref: 4c2fb54b5a1fea02173ff0ab6cdcca4f53664daf
cookbook-ref: 2e53a2dc1a80631580cfba8b3611219de83c7ce1
tag: ${{ needs.prepare.outputs.tag }}
artifact-id: ${{ needs.accept.outputs.artifact }}
44 changes: 44 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Generated cookbook caller. Change recipe data and regenerate.
name: Security
run-name: "Security · ${{ github.event.schedule || github.event_name }}"
'on':
schedule:
- cron: "15 2 * * *"
workflow_dispatch:
permissions: {}
concurrency:
group: security-${{ github.ref }}
cancel-in-progress: false
jobs:
security:
name: Security
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04
timeout-minutes: 60
permissions:
contents: read
issues: write
steps:
- name: Prepare
timeout-minutes: 20
uses: nicodes/cookbook/prepare@2e53a2dc1a80631580cfba8b3611219de83c7ce1
with:
cookbook-ref: 2e53a2dc1a80631580cfba8b3611219de83c7ce1
source: ${{ github.sha }}
advisories: run
target: x86_64-unknown-linux-musl
- name: Audit
timeout-minutes: 30
uses: nicodes/cookbook/security@2e53a2dc1a80631580cfba8b3611219de83c7ce1
- name: Finish
if: always()
timeout-minutes: 5
uses: nicodes/cookbook/finish@2e53a2dc1a80631580cfba8b3611219de83c7ce1
with:
status: ${{ job.status }}
- name: Report failure
if: failure()
timeout-minutes: 5
run: python3 "$TOOLS_ROOT/helpers/report-failure.py"
env:
GH_TOKEN: ${{ github.token }}
3 changes: 3 additions & 0 deletions cookbook.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ version_identity = "number"
validation_timeout = 30
acceptance_timeout = 5
initial_version = "0.0.7"

[ci]
single_job = true
Loading
Loading