-
Notifications
You must be signed in to change notification settings - Fork 10
64 lines (63 loc) · 2.11 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
name: Tests
on:
pull_request:
paths:
- "**/*.rs"
- 'Cargo.toml'
- 'tealr/Cargo.lock'
- 'tealr_derive/Cargo.toml'
- '.github/workflows/ci.yml'
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: rustfmt
- name: Formatting check
run: cargo fmt --all -- --check
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
tests :
- "cargo test --features mlua,mlua_vendored,mlua_lua53,mlua_async,mlua_send"
- "cargo test --features mlua,mlua_vendored,mlua_lua54,mlua_async,mlua_send"
- "cargo test --features mlua,mlua_vendored,mlua_lua53,mlua_async --no-run"
- "cargo test --features mlua,mlua_vendored,mlua_lua54,mlua_async --no-run"
- "cargo test --features rlua,rlua_builtin-lua54"
- "cargo test --features rlua,rlua_builtin-lua53"
steps:
- uses: actions/checkout@master
- uses: hecrj/[email protected]
with:
rust-version: stable
- uses: leafo/[email protected]
with:
luaVersion: "5.4"
- uses: leafo/[email protected]
- name: Install dependencies
run: luarocks install tl
- name: run tests
run: ${{matrix.tests}}
clippy:
runs-on: ubuntu-latest
strategy:
matrix:
tests :
- "cargo clippy --features mlua,mlua_vendored,mlua_lua54,mlua_async,mlua_send -- -D warnings"
- "cargo clippy --features mlua,mlua_vendored,mlua_lua53,mlua_async,mlua_send -- -D warnings"
- "cargo clippy --features mlua,mlua_vendored,mlua_luau,mlua_async,mlua_send -- -D warnings"
- "cargo clippy --features rlua,rlua_builtin-lua54 -- -D warnings"
- "cargo clippy --features rlua,rlua_builtin-lua53 -- -D warnings"
steps:
- uses: hecrj/[email protected]
with:
rust-version: stable
components: clippy
- uses: actions/checkout@master
- name: Clippy
run: ${{matrix.tests}}