chore: modernize ngx (CI trigger, flake refresh, treefmt.toml cleanup) by Unisay · Pull Request #5 · purescript-lua/purescript-lua-ngx · GitHub
Skip to content

chore: modernize ngx (CI trigger, flake refresh, treefmt.toml cleanup)#5

Merged
Unisay merged 1 commit into
mainfrom
chore/modernize-ngx
Jun 24, 2026
Merged

chore: modernize ngx (CI trigger, flake refresh, treefmt.toml cleanup)#5
Unisay merged 1 commit into
mainfrom
chore/modernize-ngx

Conversation

@Unisay

@Unisay Unisay commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Brings purescript-lua-ngx up to the current ecosystem baseline and gets its CI actually running.

The spago 1.x migration (commit 1316ee5) landed on main, but the push CI trigger was still set to master, a branch this repo never had. So push CI had never run and the migration stayed unverified. This points the trigger at main, and the build is confirmed locally.

Changes:

  • ci.yml: run push CI on main, not master.
  • flake.lock: bump pslua to current main (319831d) and nixpkgs to 2026-06-16.
  • remove treefmt.toml, which treefmt.nix (nix fmt) replaced.

Verified locally in the dev shell: ./scripts/build produces both dist modules, luacheck is clean (0 warnings, 0 errors), and nix fmt leaves the tree unchanged. The PR's own CI run is the first push/PR CI this repo has executed since the migration.

…treefmt.toml

- ci.yml: trigger push CI on `main` (the default branch), not `master`.
  The branch never existed here, so push CI had never run and the spago
  1.x migration went unverified.
- flake.lock: bump pslua to current main (319831d) and nixpkgs to 2026-06-16.
- remove treefmt.toml, superseded by treefmt.nix (`nix fmt`).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Modernizes the repo’s Nix/CI setup so that the post–Spago 1.x state is actually exercised by GitHub Actions, and removes obsolete treefmt configuration now handled by treefmt.nix/nix fmt.

Changes:

  • Fix GitHub Actions push CI trigger to run on main instead of master.
  • Refresh flake inputs by updating flake.lock (notably pslua and nixpkgs).
  • Remove treefmt.toml now that formatting is configured via treefmt.nix/treefmt-nix.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci.yml Updates push trigger branch to main so CI runs on pushes to the actual default branch.
flake.lock Updates pinned Nix inputs to current revisions to match the modernized toolchain baseline.
treefmt.toml Removes legacy formatter config superseded by treefmt.nix (nix fmt).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Unisay Unisay merged commit feebda3 into main Jun 24, 2026
2 checks passed
@Unisay Unisay deleted the chore/modernize-ngx branch June 24, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants