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
52 changes: 52 additions & 0 deletions .github/workflows/ext-explorer-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Extension explorer up to date

on:
pull_request:
paths:
- "nix/config.nix"
- "nix/ext/versions.json"
- "nix/ext/supautils.nix"
- "nix/ext/orioledb.nix"
- "nix/ext/version-history.json"
- "nix/packages/ext-explorer.nix"
- "nix/packages/ext-explorer/**"
- "pg-extension-explorer.html"
push:
branches: [main]
paths:
- "nix/config.nix"
- "nix/ext/versions.json"
- "nix/ext/supautils.nix"
- "nix/ext/orioledb.nix"
- "nix/ext/version-history.json"
- "nix/packages/ext-explorer.nix"
- "nix/packages/ext-explorer/**"
- "pg-extension-explorer.html"
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.merge_group.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}

permissions:
contents: read

jobs:
check:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: Checkout Repo
uses: supabase/postgres/.github/actions/shared-checkout@HEAD

- name: Install nix
uses: ./.github/actions/nix-install-ephemeral

- name: Check ext-explorer output is up to date
run: |
set -Eeuo pipefail
if [ "${{ github.event_name }}" = "pull_request" ]; then
BASE="${{ github.event.pull_request.base.sha }}"
else
BASE="HEAD^"
fi
nix run --accept-flake-config .#ext-explorer -- --check --base "$BASE"
Loading
Loading