Headless CI for Stata code
Run Stata .do files in GitHub Actions — with real exit codes and no licence server.
Running Stata inside GitHub Actions normally requires self-hosted runners, hidden licence blobs, and fragile log-scraping because stata -b exits 0 even on syntax errors. Regwright ships as one static Linux binary with an official Action, offline signed keys, and non-zero exit codes whenever a script fails.
Drop-in GitHub Actions workflow
name: Replicate tables
on: [push, pull_request]
jobs:
stata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Huckcity/regwright-action@v1
with:
licence: ${{ secrets.REGWRIGHT_LICENSE }}
- run: regwright -b do code/master.do
Why research labs & data teams automate with Regwright
- Fails the build on errors: exits non-zero when a command fails and writes
r(#);at the end ofmaster.logjust like Stata. - Zero network licence server: the
REGWRIGHT_LICENSEsecret is verified offline by cryptographic signature on the runner. One CI/Server licence (£299/yr) covers unlimited sequential runs on one concurrent runner; add extra runners directly at checkout or pick Site (£2,490/yr) for unlimited runners and seats. - Check compatibility first: test your exact script free up to 1,000 observations in CI or the playground, and check all 501 live commands on the compatibility matrix.