Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lune Unit Testing #367

Merged
merged 10 commits into from
Oct 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/UnitTests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: UnitTests

on:
pull_request:
push:
branches:
- master

jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout luau-ast repo
uses: actions/checkout@v4
with:
path: luau-ast

- name: Checkout roblox-ts repo
uses: actions/checkout@v4
with:
repository: roblox-ts/roblox-ts
ref: lune
path: roblox-ts

- name: Install Foreman
uses: Roblox/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup luau-ast repo
run: |
cd luau-ast
npm install
npm run build

- name: Setup roblox-ts repo
run: |
cd roblox-ts
foreman install
npm install
npm install ../luau-ast
npm run update-test-types

- name: Run Tests
run: |
cd roblox-ts
npm test
Loading