Skip to content

Init CI workflow for pull requests#53

Merged
Nicell merged 2 commits into
luau-lang:mainfrom
tyulpan:init-ci-workflow-for-pull-requests
Mar 19, 2026
Merged

Init CI workflow for pull requests#53
Nicell merged 2 commits into
luau-lang:mainfrom
tyulpan:init-ci-workflow-for-pull-requests

Conversation

@tyulpan
Copy link
Copy Markdown
Contributor

@tyulpan tyulpan commented Mar 16, 2026

I used the workflow in lute as an example to build this one.

  • Extracted a piece of common logic from .github/workflows/deploy.yml to .github/actions/build/action.yml.
  • Created .github/workflows/ci.yml, which will trigger on new pull requests to main. New pushes to the same PR should cancel in-progress CI runs.
  • Additionally, added type checking for each workflow.

Resolves #18.

Copy link
Copy Markdown
Collaborator

@Nicell Nicell left a comment

Choose a reason for hiding this comment

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

thanks for working on this! two small comments

Comment thread .github/actions/build/action.yml Outdated
Comment on lines +62 to +64
- name: Test
shell: bash
run: npm test
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this doesn't exist yet, should be added with the first tests

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.

Suggested a workflow for this in PR #52.

Comment thread .github/actions/build/action.yml Outdated
wasm/luau
public/wasm/luau.wasm
src/lib/luau/luau-module.js
key: build-${{ runner.os }}-${{ hashFiles('wasm/src/**', 'wasm/CMakeLists.txt', 'wasm/build.sh') }}-luau-${{ github.run_id }}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

now that we're building on PRs, we should probably make this key a bit better. let's drop the run_id from the key and add the luau commit sha to this, that's more correct. can output it right after pulling latest in the luau repo.

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.

Good point! I would also propose linking to the release commit rather than the head commit, following the approach used in lute(line).

Copy link
Copy Markdown
Collaborator

@Nicell Nicell left a comment

Choose a reason for hiding this comment

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

thanks!

@Nicell Nicell merged commit 92ddb0e into luau-lang:main Mar 19, 2026
1 check passed
@tyulpan tyulpan deleted the init-ci-workflow-for-pull-requests branch March 19, 2026 23:48
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.

Implement CI workflow for Pull Requests

2 participants