Speed down race test #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
run-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Windows x86_64 | |
runner-os: windows-latest | |
- name: Linux x86_64 | |
runner-os: ubuntu-latest | |
- name: macOS aarch64 | |
runner-os: macos-14 | |
name: CI - ${{ matrix.name }} | |
runs-on: ${{ matrix.runner-os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Foreman | |
uses: Roblox/setup-foreman@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Toolchain | |
run: foreman install | |
- name: Run Tests | |
shell: bash | |
run: | | |
find libs -name "*test.luau" | while read -r file; do | |
# append the finish call to the end of the file, because im lazy!! | |
echo -e "\n\nif not FINISH() then error(nil, 0) end" >> "$file" | |
lune run $file | |
done |