Skip to content

Commit

Permalink
ci: add check that ensures POT files are up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
pluiedev committed Feb 26, 2025
1 parent 7c90d20 commit f972e26
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- prettier
- alejandra
- typos
- translations
- test-pkg-linux
- test-debian-12
steps:
Expand Down Expand Up @@ -593,6 +594,38 @@ jobs:
- name: typos check
run: nix develop -c typos

translations:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-sm
timeout-minutes: 60
env:
ZIG_LOCAL_CACHE_DIR: /zig/local-cache
ZIG_GLOBAL_CACHE_DIR: /zig/global-cache
steps:
- uses: actions/checkout@v4 # Check out repo so we can lint it
- name: Setup Cache
uses: namespacelabs/[email protected]
with:
path: |
/nix
/zig
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
name: ghostty
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
skipPush: true
useDaemon: false # sometimes fails on short jobs
- name: check translations
run: |
old_pot=$(mktemp)
cp po/com.mitchellh.ghostty.pot $old_pot
nix develop -c zig build update-translations
# Ignore the POT creation date, which is renewed after every xgettext invocation
diff -I'^"POT-Creation-Date' po/com.mitchellh.ghostty.pot $old_pot
test-pkg-linux:
strategy:
fail-fast: false
Expand Down

0 comments on commit f972e26

Please sign in to comment.