-
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (56 loc) · 2.61 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Taken from roblox-ts under the MIT license https://github.com/roblox-ts/roblox-ts/blob/master/.github/workflows/ci.yml
name: CI
on:
pull_request:
push:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Install Foreman
uses: rojo-rbx/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Selene
run: selene lib
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Run StyLua check
uses: JohnnyMorganz/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --check lib
unit-tests:
name: Unit Tests
runs-on: windows-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Install Roblox Studio
uses: OrbitalOwen/[email protected]
with:
# This cookie is intentionally public, because secrets are not available in pull request CI runs
# It is from an empty account and not a security vulnerability
cookie: ${{ secrets.ROBLOSECURITY || '_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_A3AD229182BC0459872219D4D22D9D90FA3BEDE7FD97225DF5173B69D28444B60DD6A62C10A3B6439189CAD3E5FFECBF7EE68C6686FCADC2BE36FCE2A8E8FE695F83A85E5E874B8FD6FEB920BA3F3088C1F93E8B5E52EFEF623A493EC4AAD17EB7CC8748907CC617562165EA323F6E6D45EFA13518FC2945207B65E0878CC551AE966D8D86C0EFA600E00788EF9A8B6DAD33190A3D950BC76AC4F7860582732DE1EF7C80EB540D9C1F86AD01ADD54E0A654BAC28682232738353F9E66FC7E2F7E47CA3EED8C353EECA2E5296FC6F2200012379D0F9A109A984FB84369ECDA6DD1994AA22EEC8787F7391390E623663AD33F428128CFD24E4ABD1B6B3A0E7E5950366C41177A722621EE8DD3F6E7654E55F2C4191C181D10CD275FDBD7F1042F9002D7A269B1B862D57A7D5A76DC6860EF5A0210BA37FA44794B1BA45FB497F6E0BFA348F8069D9CB3D1E83128D4D92EFA3EDD142' }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Foreman
uses: rojo-rbx/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build test place
run: rojo build test.project.json -o test.rbxl
- name: Run tests
shell: bash
run: run-in-roblox --place test.rbxl --script tests.server.lua > test-out.txt
continue-on-error: true
- name: Check test status
shell: bash
run: cat test-out.txt | grep "0 failed, 0 skipped" || (cat test-out.txt && exit 1)