forked from rojo-rbx/run-in-roblox
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.02 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
name: CI
on:
pull_request:
push:
branches: ["master"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Rust toolchain
run: rustup default stable
- name: Build
run: cargo build --locked --verbose
# - name: Run tests
# run: cargo test --locked --verbose
- name: Rustfmt and Clippy
run: |
cargo fmt -- --check
cargo clippy
test:
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- name: Setup Rust toolchain
run: rustup default stable
- uses: ok-nick/[email protected]
- name: Install aftman tools
run: aftman install
- name: Build run-in-roblox plugin
run: cd plugin && lune build.lua
- name: Build
run: cargo build --locked --verbose
- name: Run example script
run: cargo run -- run --script ./demo/hello.lua --universe-id 28220420 --place-id 95206881 --oneshot