Skip to content

ci: add VeRT test workflow to master (harness-guarded, gates PRs/pushes) - #17

Merged
robrigo merged 2 commits into
masterfrom
ci/contract-tests
Jul 16, 2026
Merged

ci: add VeRT test workflow to master (harness-guarded, gates PRs/pushes)#17
robrigo merged 2 commits into
masterfrom
ci/contract-tests

Conversation

@robrigo

@robrigo robrigo commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the contract CI workflow to master so pushes and PRs into the default branch are gated by the @vaulta/vert test suite.

master has no test harness yet (it arrives with v2: Makefile/package.json/tests/), so the workflow's harness guard skips cleanly here — a green no-op — and runs the full suite automatically once v2 lands on master. This also gates the open feat/v2-* → master PRs (#9/#10/#11), whose merge ref does contain the harness.

The file is identical to the copy added to feat/v2-integration (PR #16), so there's no conflict when v2 later merges to master.

Validated

Pushed this branch (ci/** push trigger) → run green in 7s, correctly skipped: "No contract test harness on this ref — skipping build + tests." Run: https://github.com/atomicassets/atomicassets-contract/actions/runs/27156991385

See PR #16 for the full green run (build + 320 tests) on the v2 line where the harness is present.

Workflow

ubuntu-latest, harness-guarded; installs public CDT 4.1.1 .deb, make build, npx jest. GitHub-hosted (the FACINGS monorepo's self-hosted + private-GHCR CI isn't reachable from this public org). Actions SHA-pinned.

Adds the contract CI workflow to master so pushes + PRs into master are gated.
master has no test harness yet (it arrives with v2), so the workflow's harness
guard skips cleanly here (green no-op) and runs the full @vaulta/vert suite once
v2 lands. Identical to the copy added to feat/v2-integration (PR #16) → no
conflict when v2 merges to master. Runs on ubuntu-latest with the public CDT
4.1.1 .deb; actions SHA-pinned.

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

Adds a GitHub Actions workflow on master to build the contract (when the v2 harness is present) and run the @vaulta/vert (VeRT) test suite, while cleanly skipping on refs that don’t yet include the test harness.

Changes:

  • Introduces .github/workflows/contracts-ci.yaml to run on pushes and PRs, with a harness guard that no-ops on current master.
  • Installs pinned CDT 4.1.1, sets up Node, installs JS deps, builds via make build, and runs npx jest --ci when the harness is present.

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

Comment on lines +10 to +14
on:
push:
branches: [master, feat/v2-integration, feat/v2-tests-integration, "ci/**"]
pull_request:
workflow_dispatch:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Already addressed in cbbba7f: pull_request now carries the same branches: filter as push (master, feat/v2-integration, feat/v2-tests-integration), so it no longer fires for PRs into other bases. push additionally keeps ci/** so workflow changes can be exercised on their own branch.

@robrigo
robrigo requested a review from Copilot July 16, 2026 02:39
@robrigo
robrigo merged commit 2cbc10a into master Jul 16, 2026
3 checks passed
@robrigo
robrigo deleted the ci/contract-tests branch July 16, 2026 02:40

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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