-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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