-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (36 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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-tests:
runs-on: ubuntu-latest
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
run: |
set +e # Don't exit on error
find libs -name "*test.luau" | while read -r file; do
echo "Running test: $file"
lune "$file" 2>&1 | tee -a test_output.log
echo "Exit code: $?" >> test_output.log
echo "----------------------------------------" >> test_output.log
done
set -e # Re-enable exit on error
echo "Full test output:"
cat test_output.log
- name: Upload Results
if: always()
uses: actions/upload-artifact@v2
with:
name: test-results
path: test_output.log